22 lines
299 B
Go
22 lines
299 B
Go
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
|
|
}
|