pilebones / go-udev

Simple udev implementation in Golang
GNU General Public License v3.0
95 stars 28 forks source link

Do not use custom UEvent.String() that produces human-unreadable representation #32

Open anatol opened 2 years ago

anatol commented 2 years ago

The output of struct's String() suppose to be consumed as a formatted text primarily by a human. With something like this fmt.Printf("%+v", event).

Unfortunately current String() has a number of problems:

Please remove the custom incorrect String() implementation and consider using the default implementation.