Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json/cue: substitute time.Duration with type using time.ParseDuration #92

Merged
merged 3 commits into from
May 20, 2024

Commits on May 17, 2024

  1. jsontypes: add a package with helper types

    Currently only one type: ParsingDuration, which handles both
    integer-nanoseconds and time.ParseDuration-compatible strings. This
    makes it compatible with any existing JSON config files, while expanding
    support for human readable strings.
    dfinkel committed May 17, 2024
    Configuration menu
    Copy the full SHA
    42a61b7 View commit details
    Browse the repository at this point in the history
  2. json: minor cleanups: ioutil.ReadAll->io.ReadAll

    Also, move the close-brace for the empty Decoder struct onto the same
    line as the open-brace.
    dfinkel committed May 17, 2024
    Configuration menu
    Copy the full SHA
    7c8d66f View commit details
    Browse the repository at this point in the history

Commits on May 19, 2024

  1. json&cue: integrate ParsingDuration

    Integrate the new jsontypes.ParsingDuration type into the cue and json
    decoders via the `SingleTypeSubstitutionMangler`.
    dfinkel committed May 19, 2024
    Configuration menu
    Copy the full SHA
    fe58cd1 View commit details
    Browse the repository at this point in the history