update configure providers
All checks were successful
Go Action / goaction (pull_request) Successful in 1m3s

This commit is contained in:
2026-01-06 12:30:08 +03:00
parent a9af1ee6fa
commit a4c9c10a2d
9 changed files with 122 additions and 12 deletions

View File

@@ -17,6 +17,12 @@ const (
var _ config.Provider = (*Provider)(nil)
func WithName(name string) Option {
return func(p *Provider) {
p.name = name
}
}
func NewFile(name string, opts ...Option) (*Provider, error) {
in, err := os.ReadFile(name)
if err != nil {