Back to godoc.org

Package internal

v1.42.1
Latest Go to latest
Published: Dec 2, 2019 | License: MIT | Module: github.com/yarpc/yarpc-go

Index

Package Files

func ValidateServiceName

func ValidateServiceName(name string) error

ValidateServiceName returns an error if the given servive name is invalid. Valid names are at least two characters long, start with [a-z], contain only [0-9a-z] and non-consecutive hyphens, and end in [0-9a-z]. Furthermore, names may not contain UUIDs.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier