Documentation ¶
Index ¶
- Variables
- type Encoding
- func (e *Encoding) Decode(src []byte) ([]byte, error)
- func (e *Encoding) DecodeString(s string) ([]byte, error)
- func (e *Encoding) DecodedLen(n int) int
- func (e *Encoding) Encode(src []byte) ([]byte, error)
- func (e *Encoding) EncodeToString(src []byte) (string, error)
- func (e *Encoding) EncodedLen(n int) int
Constants ¶
This section is empty.
Variables ¶
View Source
var StdEncoding, _ = NewEncoding(stdEncoder)
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
func NewEncoding ¶
func (*Encoding) DecodeString ¶
DecodeString returns the bytes represented by the PunyEncoding string s.
func (*Encoding) DecodedLen ¶
func (*Encoding) EncodeToString ¶
EncodeToString returns the PunyEncoding encoding of src.
func (*Encoding) EncodedLen ¶
Click to show internal directories.
Click to hide internal directories.