current

package
v0.0.0-...-fd00b2c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Current

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

Current is a type-safe wrapper around an atomic.Value.

func NewCurrent

func NewCurrent(str string) *Current

NewCurrent returns an initialized Current with str.

func (*Current) Get

func (c *Current) Get() string

Get returns the underlying string value.

func (*Current) Set

func (c *Current) Set(str string)

Set sets the underlying string value.

Jump to

Keyboard shortcuts

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