utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalise

func Normalise(path string) string

Types

type MUArray

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

func NewMUArray

func NewMUArray[T any]() *MUArray[T]

func (*MUArray[T]) Append

func (a *MUArray[T]) Append(value T)

func (*MUArray[T]) Get

func (a *MUArray[T]) Get() []T

func (*MUArray[T]) Set

func (a *MUArray[T]) Set(value []T)

func (*MUArray[T]) Transaction

func (a *MUArray[T]) Transaction() ([]T, func())

type MUVar

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

func NewMUFlag

func NewMUFlag[T any](initialValue T) *MUVar[T]

func (*MUVar[T]) Get

func (f *MUVar[T]) Get() T

func (*MUVar[T]) GetThenSet

func (f *MUVar[T]) GetThenSet(value T) T

func (*MUVar[T]) Set

func (f *MUVar[T]) Set(value T)

func (*MUVar[T]) Transaction

func (f *MUVar[T]) Transaction() func()

func (*MUVar[T]) UnsafeGet

func (f *MUVar[T]) UnsafeGet() T

func (*MUVar[T]) UnsafeSet

func (f *MUVar[T]) UnsafeSet(value T)

Jump to

Keyboard shortcuts

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