config

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 2 Imported by: 1

README ΒΆ

🧰 toolkit/config

Configuration toolkit.

Build Documentation Quality Template Coverage

🧩 Integration

The library uses SemVer for versioning, and it is not BC-safe through major releases. You can use go modules to manage its version.

$ go get go.octolab.org/toolkit/config@latest

made with ❀️ for everyone

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

This section is empty.

Types ΒΆ

type Feature ΒΆ added in v0.0.2

type Feature struct {
	ID      [16]byte
	Name    string
	Brief   string
	Docs    string
	RFC     string
	Enabled bool
}

Feature describe a feature.

func (Feature) String ΒΆ added in v0.0.2

func (feature Feature) String() string

String returns a string representation of the feature.

type Features ΒΆ added in v0.0.2

type Features []Feature

Features defines a list of features.

func (Features) FindByID ΒΆ added in v0.0.3

func (features Features) FindByID(id [16]byte) Feature

FindByID finds and returns Feature by passed ID. If nothing found it returns empty Feature.

func (Features) FindByName ΒΆ added in v0.0.3

func (features Features) FindByName(name string) Feature

FindByName finds and returns Feature by passed name. If nothing found it returns empty Feature.

func (Features) String ΒΆ added in v0.0.2

func (features Features) String() string

String returns a string representation of the feature list.

type Secret ΒΆ

type Secret string

Secret tries to hide the self's content while printing.

func (Secret) GoString ΒΆ

func (Secret) GoString() string

GoString implements fmt.GoStringer.

func (Secret) MarshalJSON ΒΆ

func (Secret) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Secret) MarshalText ΒΆ

func (Secret) MarshalText() (text []byte, err error)

MarshalText implements encoding.TextMarshaler.

func (Secret) MarshalYAML ΒΆ

func (Secret) MarshalYAML() (interface{}, error)

MarshalYAML implements gopkg.in/yaml.Marshaler.

func (Secret) String ΒΆ

func (Secret) String() string

String implements fmt.Stringer.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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