options

package
v0.0.0-...-937e462 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUppercaseSlice

func SetUppercaseSlice(l []string, s string) []string

Types

type Configure

type Configure struct {
	Option  *Options
	Encoder *encoder.Encoders
	Decoder *encoder.Decoders
}

func Option

func Option() (*Configure, error)

func (*Configure) Decode

func (conf *Configure) Decode() bool

func (*Configure) Encode

func (conf *Configure) Encode() bool

func (*Configure) MethodCall

func (conf *Configure) MethodCall(name string) (bool, bool)

func (*Configure) Stdin

func (conf *Configure) Stdin() bool

func (*Configure) Threads

func (conf *Configure) Threads() bool

type Options

type Options struct {
	Stdin   []string `errorcode:"1001"`
	Encode  []string `errorcode:"1002"`
	Decode  []string `errorcode:"1003"`
	Threads int      `errorcode:"1004"`
}

func (*Options) AddDecoder

func (opt *Options) AddDecoder(s string) error

func (*Options) AddEncoder

func (opt *Options) AddEncoder(s string) error

Jump to

Keyboard shortcuts

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