move default from option to param
All checks were successful
Go Action / goaction (pull_request) Successful in 1m15s

This commit is contained in:
2026-01-04 18:02:19 +03:00
parent 3ec9ee48ab
commit ab536ad876
6 changed files with 22 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"gitoa.ru/go-4devs/config"
"gitoa.ru/go-4devs/config/definition/option"
"gitoa.ru/go-4devs/config/param"
)
const NameDefault = "default"
@@ -27,7 +27,7 @@ func (a *Default) Value(ctx context.Context, key ...string) (config.Value, error
func (a *Default) Bind(_ context.Context, def config.Variables) error {
for _, opt := range def.Variables() {
if data, ok := option.DataDefaut(opt); ok {
if data, ok := param.Default(opt); ok {
a.data.SetOption(data, opt.Key()...)
}
}