jsontypes

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jsontypes contains helper types used by the JSON and Cue decoders to facilitate more natural decoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsingDuration

type ParsingDuration int64

ParsingDuration implements encoding/json.Unmarshaler, supporting both quoted strings that are parseable with time.ParseDuration, and integer nanoseconds if it's a number

func (*ParsingDuration) UnmarshalJSON

func (p *ParsingDuration) UnmarshalJSON(b []byte) error

UnmarshalJSON implements encoding/json.Unmarshaler for ParsingDuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL