flags

package
v0.0.0-...-2482490 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

func IsTemplateVariable

func IsTemplateVariable(text string) bool

IsTemplateVariable 函数会返回 true,如果文本是一个模板变量 文本必须以点号开头,并且是一个有效的模板。

func TemplateVariable

func TemplateVariable(text string) string

TemplateVariable 函数返回模板的变量名。

Types

type ConfigLoader

type ConfigLoader struct {
	// contains filtered or unexported fields
}

func (*ConfigLoader) GetString

func (cl *ConfigLoader) GetString(key string) string

func (*ConfigLoader) ReadConfig

func (cl *ConfigLoader) ReadConfig(in io.Reader) error

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

func MustLoad

func MustLoad() *Flags

func (*Flags) Get

func (f *Flags) Get(key string) (string, error)

Jump to

Keyboard shortcuts

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