Closed stapelberg closed 6 years ago
This way, packages can pass a ConnectionInt implementation around, which previously was not possible. I.e., previously you had to use dhcp4client.Connection(&literal{}) directly, now you can use:
func createClient(conn dhcp4client.ConnectionInt) *dhcp4client.Client { return dhcp4client.New(dhcp4client.Connection(conn)) }
Any reason for the interface name change?
Of course there is..
Yeah makes sense.
This way, packages can pass a ConnectionInt implementation around, which previously was not possible. I.e., previously you had to use dhcp4client.Connection(&literal{}) directly, now you can use: