encoder

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 GetMethodNames

func GetMethodNames[T Structure](t T) []string

Get all the method names

func GetMethods

func GetMethods[T Structure](t T) []string

Get all the supported encoder/decoder methods

func IsValidMethod

func IsValidMethod[T Structure](t T, l []string) bool

Check if a method is valid within the given [struct]ure

func Show

func Show()

Show all the encoders and decoders

Types

type Decoders

type Decoders struct {
	Valid []string
}

func NewDecoder

func NewDecoder() *Decoders

func (*Decoders) Base32

func (d *Decoders) Base32(s string) string

func (*Decoders) Base64

func (d *Decoders) Base64(s string) string

func (*Decoders) Binary

func (d *Decoders) Binary(s string) string

func (*Decoders) Hex

func (d *Decoders) Hex(s string) string

func (*Decoders) Hexdec

func (e *Decoders) Hexdec(s string) string

func (*Decoders) Html

func (d *Decoders) Html(s string) string

func (*Decoders) Htmle

func (d *Decoders) Htmle(s string) string

func (*Decoders) Octal

func (d *Decoders) Octal(s string) string

func (*Decoders) Unicode

func (d *Decoders) Unicode(s string) string

func (*Decoders) Unicodeplus

func (d *Decoders) Unicodeplus(s string) string

func (*Decoders) Url

func (d *Decoders) Url(s string) string

func (*Decoders) Urldouble

func (d *Decoders) Urldouble(s string) string

func (*Decoders) Xhex

func (d *Decoders) Xhex(s string) string

func (*Decoders) Xhexdec

func (e *Decoders) Xhexdec(s string) string

type Encoders

type Encoders struct {
	Valid []string
}

func NewEncoder

func NewEncoder() *Encoders

func (*Encoders) Base32

func (e *Encoders) Base32(s string) string

func (*Encoders) Base64

func (e *Encoders) Base64(s string) string

func (*Encoders) Binary

func (e *Encoders) Binary(s string) string

func (*Encoders) Hex

func (e *Encoders) Hex(s string) string

func (*Encoders) Hexdec

func (e *Encoders) Hexdec(s string) string

func (*Encoders) Html

func (e *Encoders) Html(s string) string

func (*Encoders) Htmle

func (e *Encoders) Htmle(s string) string

func (*Encoders) Lower

func (e *Encoders) Lower(s string) string

func (*Encoders) Octal

func (e *Encoders) Octal(s string) string

func (*Encoders) Unicode

func (e *Encoders) Unicode(s string) string

func (*Encoders) Unicodeplus

func (e *Encoders) Unicodeplus(s string) string

func (*Encoders) Upper

func (e *Encoders) Upper(s string) string

func (*Encoders) Url

func (e *Encoders) Url(s string) string

func (*Encoders) Urldouble

func (e *Encoders) Urldouble(s string) string

func (*Encoders) Xhex

func (e *Encoders) Xhex(s string) string

func (*Encoders) Xhexdec

func (e *Encoders) Xhexdec(s string) string

type Structure

type Structure interface {
	Encoders | Decoders
}

Jump to

Keyboard shortcuts

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