vise/go/resource/resource.go

14 lines
275 B
Go
Raw Normal View History

2023-03-31 11:52:04 +02:00
package resource
2023-03-31 11:59:55 +02:00
import (
"context"
)
type EntryFunc func(input []byte, ctx context.Context) (string, error)
2023-03-31 11:52:04 +02:00
type Fetcher interface {
2023-03-31 11:59:55 +02:00
Get(sym string) (string, error)
Render(sym string, values map[string]string) (string, error)
FuncFor(sym string) (EntryFunc, error)
2023-03-31 11:52:04 +02:00
}