name

package
v0.0.0-...-0d5229f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package name represents a name in the system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name struct {
	// contains filtered or unexported fields
}

Name represents a name in the system.

func MustParse

func MustParse(value string) Name

MustParse parses the string value and returns a name if the value complies with the rules for a name. If an error occurs the function panics.

func Parse

func Parse(value string) (Name, error)

Parse parses the string value and returns a name if the value complies with the rules for a name.

func (Name) Equal

func (n Name) Equal(n2 Name) bool

Equal provides support for the go-cmp package and testing.

func (Name) String

func (n Name) String() string

String returns the value of the name.

Jump to

Keyboard shortcuts

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