utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TempFileNameChars string = "abcdefghijklmnopqrstuvwxyz0123456789"

Variables

This section is empty.

Functions

func GetTempPath

func GetTempPath(directory string, extension string) string

func RunCommand

func RunCommand(name string, args ...string) (string, error)

Types

type Stack

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

func NewStack

func NewStack[T any]() *Stack[T]

func (*Stack[T]) IsEmpty

func (stack *Stack[T]) IsEmpty() bool

func (*Stack[T]) Pop

func (stack *Stack[T]) Pop() T

func (*Stack[T]) Push

func (stack *Stack[T]) Push(value T)

func (*Stack[T]) Size

func (stack *Stack[T]) Size() int

type StackItem

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

Jump to

Keyboard shortcuts

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