mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-07-21 07:30:44 +02:00
initial import
This commit is contained in:
18
best-practices/force-interface/main.go
Normal file
18
best-practices/force-interface/main.go
Normal file
@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
type UserService interface {
|
||||
Save()
|
||||
}
|
||||
|
||||
var _ UserService = &MyUserService{}
|
||||
|
||||
type MyUserService struct {
|
||||
}
|
||||
|
||||
func (us *MyUserService) Save() {
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
Reference in New Issue
Block a user