labels

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DNS952MaxLength int = 24

Variables

This section is empty.

Functions

func AsDNS952

func AsDNS952(name string) string

mangle the given name to be compliant as a DNS952 name "component". the returned result should match the regexp:

^[a-z]([-a-z0-9]*[a-z0-9])?$

returns "" if the name cannot be mangled.

func AsDomainFrag

func AsDomainFrag(name string) string

mangles the given name in order to produce a valid domain fragment. a valid domain fragment will consist of one or more dns952 labels concatenated by a '.' char.

Types

This section is empty.

Jump to

Keyboard shortcuts

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