streaming-key-server-manager icon indicating copy to clipboard operation
streaming-key-server-manager copied to clipboard

Accept interface, return structs

Open rluders opened this issue 8 months ago • 0 comments

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

rluders avatar Jun 06 '24 16:06 rluders