Skip to content

Conversation

@brunql
Copy link

@brunql brunql commented Feb 24, 2025

Currently we have troubles with fields sets up as struct pointers:

type Config struct {
  Connection *PointerNestedStruct `yaml:"connection"`
}

type PointerNestedStruct struct {
  Timeout time.Duration `yaml:"timeout" env-default:"10s"`
}

After this changes default values will works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant