json

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ReaderJSON = "json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	reader.BaseReader
	// contains filtered or unexported fields
}

Configuration Reader for JSON Data/File

func New

func New() *Reader

Create JSON configuration reader using file

func NewIO

func NewIO(reader io.Reader) *Reader

Create JSON configuration reader using io.Reader

func (*Reader) ConfigExtensions

func (r *Reader) ConfigExtensions() []string

func (*Reader) Configurator

func (r *Reader) Configurator() string

func (*Reader) Get

func (r *Reader) Get(_ *options.Options, field *reader.Field) (any, bool)

func (*Reader) Parse

func (r *Reader) Parse(opts *options.Options, _ []*reader.Field) error

func (*Reader) Strict

func (r *Reader) Strict() *Reader

Jump to

Keyboard shortcuts

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