domains

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnderManagement

func IsUnderManagement(s string) bool

IsUnderManagement check if string contains a vouch managed domain

func Matches

func Matches(s string) string

Matches returns one of the domains we're configured for TODO return all matches Matches return the first match of the

Types

type ByLengthDesc added in v0.2.8

type ByLengthDesc []string

ByLengthDesc sort from https://play.golang.org/p/N6GbEgBffd

func (ByLengthDesc) Len added in v0.2.8

func (s ByLengthDesc) Len() int

func (ByLengthDesc) Less added in v0.2.8

func (s ByLengthDesc) Less(i, j int) bool

this differs by offing the longest first

func (ByLengthDesc) Swap added in v0.2.8

func (s ByLengthDesc) Swap(i, j int)

Jump to

Keyboard shortcuts

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