Skip to content

Feature: Add support for an interface for complicated defaults #15

@Eyal-Shalev

Description

@Eyal-Shalev
type Defaults interface {
  Defaults(raw string) (interface{}, error)
}

example

type Duration time.Duration

func (d *Duration) Defaults(raw string) (interface{}, error) {
  return time.ParseDuration(raw)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions