name

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

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

Go to latest
Published: Dec 23, 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) MarshalText

func (n Name) MarshalText() ([]byte, error)

MarshalText provides support for logging and any marshal needs.

func (Name) String

func (n Name) String() string

String returns the value of the name.

type Null

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

Null represents a name in the system that can be empty.

func MustParseNull

func MustParseNull(value string) Null

MustParseNull 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 ParseNull

func ParseNull(value string) (Null, error)

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

func (Null) Equal

func (n Null) Equal(n2 Null) bool

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

func (Null) String

func (n Null) String() string

String returns the value of the name.

func (Null) Valid

func (n Null) Valid() bool

Valid tests if the value is null.

Jump to

Keyboard shortcuts

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