Help us shape the future of Go! Take the 2026 Go Developer Survey

get

package
v0.19.1269 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDetectors

func GetDetectors() []getter.Detector

func Parse

func Parse(ctx context.Context, obj any, opts *Options) error

Types

type Options

type Options struct {
	FieldTimeout time.Duration
	RootDir      string
	OnLocalFile  func(path string, contents []byte) error

	// WorkDir, relative to RootDir, is where relative paths resolve from when
	// no config section sets its own subdirectory.
	WorkDir string

	// Restricted is for configs from an untrusted source parsed on the control
	// plane: local reads are confined to RootDir and remote fetches to the
	// public internet.
	Restricted bool
}

Jump to

Keyboard shortcuts

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