util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(fs ...func() error) error

Chain runs the provided functions until it reaches one that returns a non-nil error, then returns it. Returns nil if none of the functions errored.

func IconToClass

func IconToClass(icon string) string

func PathExists

func PathExists(s string) bool

PathExists returns true if a path exiss.

Types

type PrefixFS

type PrefixFS struct {
	FS     fs.FS
	Prefix string
}

PrefixFS is an fs.FS wrapper that prefixes calls to Open with Prefix.

func (*PrefixFS) Open

func (self *PrefixFS) Open(name string) (fs.File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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