generic

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container[T any] struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer[T any](cType T) *Container[T]

func (*Container[T]) Add

func (c *Container[T]) Add(name string, element T) error

func (*Container[T]) Get

func (c *Container[T]) Get(name string) (T, error)

Jump to

Keyboard shortcuts

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