Initial commit
This commit is contained in:
21
internal/store/store.go
Normal file
21
internal/store/store.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
Domain() string
|
||||
}
|
||||
|
||||
func New(ctx context.Context, filename string) (Interface, error) {
|
||||
return &concrete{domain: "example.com"}, nil
|
||||
}
|
||||
|
||||
type concrete struct {
|
||||
domain string
|
||||
}
|
||||
|
||||
func (c *concrete) Domain() string {
|
||||
return c.domain
|
||||
}
|
Reference in New Issue
Block a user