name

package
v0.0.0-...-c864ae1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: BSD-2-Clause, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Overview

name package offers a suite of interfaces and structs, allowing uniform naming/identification of entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifiable

type Identifiable interface {
	SetId(title string)
	Id() string
}

Identifiable offers an interface for anything needing an identifier

type IdentifiableContainer

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

IdentifiableContainer is a struct offering a default implementation of Identifiable

func (*IdentifiableContainer) Id

func (n *IdentifiableContainer) Id() string

func (*IdentifiableContainer) SetId

func (n *IdentifiableContainer) SetId(id string)

type NameContainer

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

ContainedLogger offers a default implementation of Nameable

func (*NameContainer) Name

func (n *NameContainer) Name() string

func (*NameContainer) SetName

func (n *NameContainer) SetName(name string)

type Nameable

type Nameable interface {
	Name() string
	SetName(name string)
}

Nameable is an interface for anything needing a name

Jump to

Keyboard shortcuts

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