config

package
v0.0.0-...-d97b329 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package config creates a single data structure for the tool configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Env struct {
		Environment string
	}
	Convert struct {
		Type   string
		Import string
		Export string
		Log    string
	}
	Random struct {
		Seed int64
	}
	Version semver.Version
}

func Default

func Default() *Config

Default returns a config with default values.

func New

func New() (*Config, error)

New returns a configuration initialized with default values and updated from the environment.

Jump to

Keyboard shortcuts

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