puny

package
v1.0.2006 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Decode

func (p *Encoding) Decode(src []byte) ([]byte, error)

func (*Encoding) DecodeString

func (p *Encoding) DecodeString(s string) ([]byte, error)

DecodeString returns the bytes represented by the puny string s.

func (*Encoding) DecodedLen

func (p *Encoding) DecodedLen(n int) int

func (*Encoding) Encode

func (p *Encoding) Encode(src []byte) ([]byte, error)

func (*Encoding) EncodeToString

func (p *Encoding) EncodeToString(src []byte) (string, error)

EncodeToString returns the puny encoding of src.

func (*Encoding) EncodedLen

func (p *Encoding) EncodedLen(n int) int

Jump to

Keyboard shortcuts

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