util

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPrg

func DetectPrg(logger zLogger.ZLogger) map[string]Program

func SWAvailable

func SWAvailable(str string, prgs map[string]Program, logger zLogger.ZLogger) bool

func SWDoReplace

func SWDoReplace(str string, prgs map[string]Program) string

func SeqToSlice

func SeqToSlice[K any](i iter.Seq[K]) []K

Types

type EmptyFS added in v3.0.2

type EmptyFS struct{}

EmptyFS is an empty file system that implements fs.FS.

func (EmptyFS) Open added in v3.0.2

func (EmptyFS) Open(name string) (fs.File, error)

Open always returns an error because the file system is empty.

type Program

type Program struct {
	Prg    string
	Params string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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