encoding

package
v0.0.0-...-af305c8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Each base32 digit is 5 bits. We can have 63 digits per subdomain - so
	// 63*5 bits = 39.375 bytes
	SUBDOMAIN_B32_CHUNK_SIZE = 39
)

Variables

This section is empty.

Functions

func FromDomainPrefix

func FromDomainPrefix(domainPrefix string) ([]byte, error)

func FromTxtData

func FromTxtData(data string) ([]byte, error)

func ToDomainPrefix

func ToDomainPrefix(data []byte) (string, error)

func ToTxtData

func ToTxtData(data []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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