Documentation
¶
Index ¶
- Variables
- type Encoding
- func (p *Encoding) Decode(src []byte) ([]byte, error)
- func (p *Encoding) DecodeString(s string) ([]byte, error)
- func (p *Encoding) DecodedLen(n int) int
- func (p *Encoding) Encode(src []byte) ([]byte, error)
- func (p *Encoding) EncodeToString(src []byte) (string, error)
- func (p *Encoding) EncodedLen(n int) int
Constants ¶
This section is empty.
Variables ¶
View Source
var StdEncoding = NewPunyEncoding()
std Encoding
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct{}
func NewPunyEncoding ¶
func NewPunyEncoding() *Encoding
func (*Encoding) DecodeString ¶
DecodeString returns the bytes represented by the puny string s.
func (*Encoding) DecodedLen ¶
func (*Encoding) EncodeToString ¶
EncodeToString returns the puny encoding of src.
func (*Encoding) EncodedLen ¶
Click to show internal directories.
Click to hide internal directories.