vars

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParseKeyFunc = func(s string) (KType, error) { panic(1) }

ParseKeyFunc val解析,替换

View Source
var SetProviderByFieldType = func(v interface{}, flagValue interface{}) { panic(1) }

SetProviderByFieldType 替换

View Source
var StringValueDelim = ""

StringValueDelim 数据分割符

Functions

This section is empty.

Types

type KType

type KType int

KType 默认key类型

type Slice

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

Slice struct

func NewSlice

func NewSlice(p *[]KType, stringAlias func(s string) string) *Slice

NewSlice new func

func (*Slice) Get

func (s *Slice) Get() interface{}

Get 返回数据

func (*Slice) Set

func (s *Slice) Set(str string) error

Set 解析时由FlagSet设定而来,进行解析

func (*Slice) String

func (s *Slice) String() string

String 获取Set设置的字符串数据?或数据转换到的?

func (*Slice) TypeName

func (s *Slice) TypeName() string

TypeName type name for vars FlagValue provider

func (*Slice) Usage

func (s *Slice) Usage() string

Usage usage info for FlagSet

Jump to

Keyboard shortcuts

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