streaming-key-server-manager
streaming-key-server-manager copied to clipboard
Accept interface, return structs
It isn't wrong to return an interface in Go, however it is common for us follow the $subject principle.
https://github.com/lalizita/streaming-key-server-manager/blob/b16436ff290d11c9426e018aafb59b2a68de31b3/internal/service/keys.go#L16
You can read more here: https://bryanftan.medium.com/accept-interfaces-return-structs-in-go-d4cab29a301b