labels

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

View Source
const Sep = "."

Sep is the default domain fragment separator.

Variables

This section is empty.

Functions

func DomainFrag added in v0.2.0

func DomainFrag(name, sep string, label Func) string

DomainFrag mangles the given name in order to produce a valid domain fragment. A valid domain fragment will consist of one or more host name labels concatenated by the given separator.

func RFC1123 added in v0.2.0

func RFC1123(name string) string

RFC1123 mangles a name to conform to the DNS label rules specified in RFC1123. See http://www.rfc-base.org/txt/rfc-1123.txt

func RFC952 added in v0.2.0

func RFC952(name string) string

RFC952 mangles a name to conform to the DNS label rules specified in RFC952. See http://www.rfc-base.org/txt/rfc-952.txt

Types

type Func added in v0.2.0

type Func func(string) string

Func is a function type representing label functions.

Jump to

Keyboard shortcuts

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