Documentation
¶
Index ¶
- Variables
- func BaseConvert(number string, frombase, tobase int) string
- func Bindec(str string) int64
- func Decbin(number int64) string
- func Dechex(number int64) string
- func Decoct(number int64) string
- func Hexdec(str string) int64
- func Octdec(str string) int64
- type DataName
- type DataSet
- func (this *DataSet[N, M]) Add(name N, data func() M) *DataSet[N, M]
- func (this *DataSet[N, M]) All() map[N]func() M
- func (this *DataSet[N, M]) Clean()
- func (this *DataSet[N, M]) Get(name N) func() M
- func (this *DataSet[N, M]) Has(name N) bool
- func (this *DataSet[N, M]) Len() int
- func (this *DataSet[N, M]) Names() []N
- func (this *DataSet[N, M]) Remove(name N) *DataSet[N, M]
- type Encoding
- func (this Encoding) Asn1Decode(val any) Encoding
- func (this Encoding) Asn1DecodeWithParams(val any, params string) Encoding
- func (this Encoding) Asn1Encode(data any) Encoding
- func (this Encoding) Asn1EncodeWithParams(data any, params string) Encoding
- func (this Encoding) Base100Decode() Encoding
- func (this Encoding) Base100Encode() Encoding
- func (this Encoding) Base32Decode() Encoding
- func (this Encoding) Base32DecodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base32Encode() Encoding
- func (this Encoding) Base32EncodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base32HexDecode() Encoding
- func (this Encoding) Base32HexEncode() Encoding
- func (this Encoding) Base32RawDecode() Encoding
- func (this Encoding) Base32RawDecodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base32RawEncode() Encoding
- func (this Encoding) Base32RawEncodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base32RawHexDecode() Encoding
- func (this Encoding) Base32RawHexEncode() Encoding
- func (this Encoding) Base36Decode() Encoding
- func (this Encoding) Base36Encode() Encoding
- func (this Encoding) Base45Decode() Encoding
- func (this Encoding) Base45Encode() Encoding
- func (this Encoding) Base58Decode() Encoding
- func (this Encoding) Base58Encode() Encoding
- func (this Encoding) Base62Decode() Encoding
- func (this Encoding) Base62Encode() Encoding
- func (this Encoding) Base64Decode() Encoding
- func (this Encoding) Base64DecodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base64Encode() Encoding
- func (this Encoding) Base64EncodeWithEncoder(encoder string) Encoding
- func (this Encoding) Base64RawDecode() Encoding
- func (this Encoding) Base64RawEncode() Encoding
- func (this Encoding) Base64RawURLDecode() Encoding
- func (this Encoding) Base64RawURLEncode() Encoding
- func (this Encoding) Base64SegmentDecode(paddingAllowed ...bool) Encoding
- func (this Encoding) Base64SegmentEncode() Encoding
- func (this Encoding) Base64URLDecode() Encoding
- func (this Encoding) Base64URLEncode() Encoding
- func (this Encoding) Base85Decode() Encoding
- func (this Encoding) Base85Encode() Encoding
- func (this Encoding) Base91Decode() Encoding
- func (this Encoding) Base91Encode() Encoding
- func (this Encoding) Base92Decode() Encoding
- func (this Encoding) Base92Encode() Encoding
- func (this Encoding) Basex16Decode() Encoding
- func (this Encoding) Basex16Encode() Encoding
- func (this Encoding) Basex2Decode() Encoding
- func (this Encoding) Basex2Encode() Encoding
- func (this Encoding) Basex62Decode() Encoding
- func (this Encoding) Basex62Encode() Encoding
- func (this Encoding) BasexDecodeWithEncoder(encoder string) Encoding
- func (this Encoding) BasexEncodeWithEncoder(encoder string) Encoding
- func (this Encoding) BinaryBigEndianDecode(dst any) Encoding
- func (this Encoding) BinaryBigEndianEncode(data any) Encoding
- func (this Encoding) BinaryLittleEndianDecode(dst any) Encoding
- func (this Encoding) BinaryLittleEndianEncode(data any) Encoding
- func (this Encoding) ConvertBinDecode(data string) Encoding
- func (this Encoding) ConvertBinEncode() string
- func (this Encoding) ConvertDecDecode(data int64) Encoding
- func (this Encoding) ConvertDecEncode() int64
- func (this Encoding) ConvertDecStringDecode(data string) Encoding
- func (this Encoding) ConvertDecStringEncode() string
- func (this Encoding) ConvertDecode(input any, base int, bitSize ...int) Encoding
- func (this Encoding) ConvertEncode(base int) string
- func (this Encoding) ConvertHexDecode(data string) Encoding
- func (this Encoding) ConvertHexEncode() string
- func (this Encoding) ConvertOctDecode(data string) Encoding
- func (this Encoding) ConvertOctEncode() string
- func (this Encoding) CsvDecode(dst any, opts ...rune) Encoding
- func (this Encoding) CsvEncode(data [][]string) Encoding
- func (this Encoding) DecodeBy(name string, cfg ...map[string]any) Encoding
- func (this Encoding) EncodeBy(name string, cfg ...map[string]any) Encoding
- func (this Encoding) FromBytes(data []byte) Encoding
- func (this Encoding) FromReader(reader io.Reader) Encoding
- func (this Encoding) FromString(data string) Encoding
- func (this Encoding) GobDecode(dst any) Encoding
- func (this Encoding) GobEncode(data any) Encoding
- func (this Encoding) HexDecode() Encoding
- func (this Encoding) HexEncode() Encoding
- func (this Encoding) JSONDecode(dst any) Encoding
- func (this Encoding) JSONEncode(data any) Encoding
- func (this Encoding) JSONIteratorDecode(dst any) Encoding
- func (this Encoding) JSONIteratorEncode(data any) Encoding
- func (this Encoding) JSONIteratorIndentEncode(v any, prefix, indent string) Encoding
- func (this Encoding) MorseITUDecode() Encoding
- func (this Encoding) MorseITUEncode() Encoding
- func (this Encoding) PunyDecode() Encoding
- func (this Encoding) PunyEncode() Encoding
- func (this Encoding) QuotedprintableDecode() Encoding
- func (this Encoding) QuotedprintableEncode() Encoding
- func (this Encoding) SafeURLDecode() Encoding
- func (this Encoding) SafeURLEncode() Encoding
- func (this Encoding) SerializeDecode(val any) Encoding
- func (this Encoding) SerializeEncode(data any) Encoding
- func (this Encoding) String() string
- func (this Encoding) ToBytes() []byte
- func (this Encoding) ToReader() io.Reader
- func (this Encoding) ToString() string
- func (this Encoding) XmlDecode(dst any) Encoding
- func (this Encoding) XmlEncode(data any) Encoding
- type IEncoding
Constants ¶
This section is empty.
Variables ¶
var ( // newStr := NewBase32Encoding(encoder string).WithPadding(NoPadding).EncodeToString(src []byte) // newStr, err := NewBase32Encoding(encoder string).WithPadding(NoPadding).DecodeString(src string) NewBase32Encoding = base32.NewEncoding )
var ( // newStr := NewBase64Encoding(encoder string).WithPadding(NoPadding).EncodeToString(src []byte) // newStr, err := NewBase64Encoding(encoder string).WithPadding(NoPadding).DecodeString(src string) NewBase64Encoding = base64.NewEncoding )
var UseEncoding = NewDataSet[string, IEncoding]()
EncodeDecode
Functions ¶
func BaseConvert ¶
各种进制互转 十进制转十六进制 Base Convert BaseConvert("12312", 10, 16) [2- 36] 进制
Types ¶
type Encoding ¶
type Encoding struct { // Error Error error // contains filtered or unexported fields }
*
- Encode *
- @create 2022-4-3
- @author deatil
func (Encoding) Asn1DecodeWithParams ¶
Asn1 Decode
func (Encoding) Asn1EncodeWithParams ¶
Asn1 Encode
func (Encoding) Base32DecodeWithEncoder ¶
Decode Base32Encoder
func (Encoding) Base32EncodeWithEncoder ¶
Encode Base32Encoder
func (Encoding) Base32RawDecodeWithEncoder ¶
Decode Base32Encoder raw
func (Encoding) Base32RawEncodeWithEncoder ¶
Encode Base32Encoder raw
func (Encoding) Base32RawHexDecode ¶
Decode Base32Hex raw
func (Encoding) Base32RawHexEncode ¶
Encode Base32Hex raw
func (Encoding) Base64DecodeWithEncoder ¶
Base64 Decode With Encoder
func (Encoding) Base64EncodeWithEncoder ¶
Base64 Encode With Encoder
func (Encoding) Base64RawURLDecode ¶
Base64RawURL Decode
func (Encoding) Base64RawURLEncode ¶
Base64RawURL Encode
func (Encoding) Base64SegmentDecode ¶
Base64Segment Decode
func (Encoding) Base64SegmentEncode ¶
Base64Segment Encode
func (Encoding) BasexDecodeWithEncoder ¶
Basex Decode With Encoder
func (Encoding) BasexEncodeWithEncoder ¶
Basex Encode With Encoder
func (Encoding) BinaryBigEndianDecode ¶
Binary Big Endian Decode
func (Encoding) BinaryBigEndianEncode ¶
Binary Big Endian Encode
func (Encoding) BinaryLittleEndianDecode ¶
Binary Little Endian Decode
func (Encoding) BinaryLittleEndianEncode ¶
Binary Little Endian Encode
func (Encoding) ConvertBinDecode ¶
二进制 ConvertBinDecode
func (Encoding) ConvertBinEncode ¶
输出 二进制 ConvertBinEncode
func (Encoding) ConvertDecDecode ¶
十进制 ConvertDecDecode
func (Encoding) ConvertDecEncode ¶
输出 十进制 ConvertDecEncode
func (Encoding) ConvertDecStringDecode ¶
十进制字符 ConvertDecStringDecode
func (Encoding) ConvertDecStringEncode ¶
输出 十进制 ConvertDecStringEncode
func (Encoding) ConvertDecode ¶
ConvertDecode 给定类型数据格式化为string类型数据 bitSize 限制长度 ParseBool()、ParseFloat()、ParseInt()、ParseUint()。 FormatBool()、FormatInt()、FormatUint()、FormatFloat()、
func (Encoding) ConvertEncode ¶
输出进制Encode ConvertEncode
func (Encoding) ConvertHexDecode ¶
十六进制 ConvertHexDecode
func (Encoding) ConvertHexEncode ¶
输出 十六进制 ConvertHexEncode
func (Encoding) ConvertOctDecode ¶
八进制 ConvertOctDecode
func (Encoding) ConvertOctEncode ¶
输出 八进制 ConvertOctEncode
func (Encoding) JSONIteratorDecode ¶
JSONIterator Decode
func (Encoding) JSONIteratorEncode ¶
JSONIterator Encode
func (Encoding) JSONIteratorIndentEncode ¶
JSONIterator Indent Encode
func (Encoding) QuotedprintableDecode ¶
quotedprintable Decode
func (Encoding) QuotedprintableEncode ¶
quotedprintable Encode
func (Encoding) SerializeDecode ¶
Serialize Decode
func (Encoding) SerializeEncode ¶
Serialize Encode
Source Files
¶
- asn1.go
- base100.go
- base32.go
- base36.go
- base45.go
- base58.go
- base62.go
- base64.go
- base85.go
- base91.go
- base92.go
- basex.go
- binary.go
- convert.go
- csv.go
- data_set.go
- encoding.go
- encoding_from.go
- encoding_to.go
- encoding_use.go
- gob.go
- hex.go
- json.go
- morse.go
- puny.go
- quotedprintable.go
- safe_url.go
- serialize.go
- xml.go