Исходники и презентации
This commit is contained in:
16
lessons/interfaces/empty_interfaces_use_case/main.go
Normal file
16
lessons/interfaces/empty_interfaces_use_case/main.go
Normal file
@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
type Cient struct{}
|
||||
type Admin struct{}
|
||||
|
||||
type Storage struct{}
|
||||
|
||||
func (s *Storage) Get(id int) (interface{}, error) {
|
||||
// already implemented
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (s *Storage) Set(id int, user interface{}) error {
|
||||
// already implemented
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user