key

package
v0.0.0-...-3f873ad Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L

type L []T

func ParseStrings

func ParseStrings(l []string) L

ParseStrings function processes a list of strings, parses them into keyword, filters out any invalid keyword (based on the IsZero check), and returns a list of valid keywords.

type T

type T struct {
	Section string `json:"section"`
	Option  string `json:"option"`
}

func New

func New(section, option string) T

func Parse

func Parse(s string) T

Parse function construct key T from the parsed string s. On invalid string s the zero key is returned.

func (T) BaseOption

func (t T) BaseOption() string

func (T) IsZero

func (t T) IsZero() bool

func (T) Scope

func (t T) Scope() string

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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