domains

package
v0.0.0-...-62634f4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure()

Configure see main.go configure()

func IsUnderManagement

func IsUnderManagement(email string) bool

IsUnderManagement check if an email is under vouch-managed domain

func Matches

func Matches(s string) string

Matches returns one of the domains we're configured for

Types

type ByLengthDesc

type ByLengthDesc []string

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

func (ByLengthDesc) Len

func (s ByLengthDesc) Len() int

func (ByLengthDesc) Less

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

this differs by offing the longest first

func (ByLengthDesc) Swap

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