mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-20 16:45:56 +08:00
19 lines
246 B
Go
19 lines
246 B
Go
package store
|
|
|
|
type Customer struct {
|
|
// Some fields
|
|
}
|
|
|
|
type Contract struct {
|
|
// Some fields
|
|
}
|
|
|
|
type Store struct{}
|
|
|
|
func (s *Store) Get(id string) (any, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (s *Store) Set(id string, v any) error {
|
|
return nil
|
|
}
|