vise/go/resource/resource.go
2023-03-31 12:41:00 +01:00

14 lines
275 B
Go

package resource
import (
"context"
)
type EntryFunc func(input []byte, ctx context.Context) (string, error)
type Fetcher interface {
Get(sym string) (string, error)
Render(sym string, values map[string]string) (string, error)
FuncFor(sym string) (EntryFunc, error)
}