component

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicPointer

type AtomicPointer[E any] struct {
	Init func() *E
	// contains filtered or unexported fields
}

func NewAtomicPointer

func NewAtomicPointer[E any](init func() *E) *AtomicPointer[E]

func (*AtomicPointer[E]) Get

func (p *AtomicPointer[E]) Get() *E

func (*AtomicPointer[E]) Set

func (p *AtomicPointer[E]) Set(e *E)

type Elem

type Elem[E any] struct {
	Init func() E
	// contains filtered or unexported fields
}

func NewElem

func NewElem[E any](init func() E) *Elem[E]

func (*Elem[E]) Get

func (c *Elem[E]) Get() E

type Pointer

type Pointer[E any] struct {
	Init func() *E
	// contains filtered or unexported fields
}

func NewPointer

func NewPointer[E any](init func() *E) *Pointer[E]

func (*Pointer[E]) Get

func (c *Pointer[E]) Get() *E

Jump to

Keyboard shortcuts

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