jxparams

package module
v0.0.0-...-fae87cb Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig() *Config

func (*Config) SetDefault

func (c *Config) SetDefault(s string) *Config

func (*Config) SetMust

func (c *Config) SetMust() *Config

func (*Config) SetPrefix

func (c *Config) SetPrefix() *Config

func (*Config) SetSuffix

func (c *Config) SetSuffix() *Config

type Params

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

func (*Params) Split

func (p *Params) Split(sep string) []string

func (*Params) ToBool

func (p *Params) ToBool() (bool, error)

func (*Params) ToFloat64

func (p *Params) ToFloat64() (float64, error)

func (*Params) ToInt

func (p *Params) ToInt() (int, error)

func (*Params) ToInt64

func (p *Params) ToInt64() (int64, error)

func (*Params) ToString

func (p *Params) ToString() string

type ParamsSet

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

func NewParams

func NewParams() *ParamsSet

func (*ParamsSet) GetParams

func (p *ParamsSet) GetParams(s string) (*Params, bool)

func (*ParamsSet) GetPrefix

func (p *ParamsSet) GetPrefix(s string) (r map[string]*Params, ok bool)

GetPrefix 获取前缀参数

func (*ParamsSet) GetSuffix

func (p *ParamsSet) GetSuffix(s string) (r map[string]*Params, ok bool)

GetSuffix 获取后缀参数

func (*ParamsSet) Load

func (p *ParamsSet) Load() error

func (*ParamsSet) Println

func (p *ParamsSet) Println()

func (*ParamsSet) SetCharset

func (p *ParamsSet) SetCharset(c properties.Encoding)

func (*ParamsSet) SetConfigFile

func (p *ParamsSet) SetConfigFile(s string)

func (*ParamsSet) SetParams

func (p *ParamsSet) SetParams(s string, c ...*Config)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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