utils

package
v0.0.0-...-5865759 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateParentFolders

func CreateParentFolders(file string) error

func Exists

func Exists(name string) bool

func GetIndexedFiles

func GetIndexedFiles(body []byte, basePath string) ([]string, error)

func GetReferencedHashes

func GetReferencedHashes(obj object.Object) []string

func IgnoreError

func IgnoreError(err error) bool

func IsEmpty

func IsEmpty(dir string) (bool, error)

func IsEmptyBytes

func IsEmptyBytes(b []byte) bool

func IsFolder

func IsFolder(name string) bool

func IsHtml

func IsHtml(body []byte) bool

func MaxInt

func MaxInt(x, y int) int

func MinInt

func MinInt(x, y int) int

func StringsContain

func StringsContain(slice []string, str string) bool

func Url

func Url(base, path string) string

TODO: replace all uses of this with the proper path utils

Types

This section is empty.

Jump to

Keyboard shortcuts

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