misc

package
v0.0.0-...-8359c59 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedFSGetAllFilenames

func EmbedFSGetAllFilenames(efs *embed.FS) (files []string, err error)

func GetEnvOrPanic

func GetEnvOrPanic(name string) string

func ReadFileOrPanic

func ReadFileOrPanic(name string) []byte

func RunOnExitSyscall

func RunOnExitSyscall(callback func(ctx context.Context))

func SubEmbedFSAsHttpFs

func SubEmbedFSAsHttpFs(efs *embed.FS, dir string) http.FileSystem

func WrapBinaryContents

func WrapBinaryContents(contents []byte, prepend []byte, append []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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