fn

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadToTempDir

func DownloadToTempDir(url string) (*os.File, error)

func FileExists

func FileExists(filePath string) bool

func GzipCompress

func GzipCompress(input []byte) []byte

func GzipDecompress

func GzipDecompress(input []byte) []byte

func IsEmpty

func IsEmpty(s string) bool

func SaveToWAVFile

func SaveToWAVFile(filename string, data []byte) (*os.File, error)

func SendFileChunks

func SendFileChunks(file *os.File, firstSize int, chunkSize int, ch chan []byte)

func Ternary

func Ternary[T any](cond bool, trueVal T, falseVal T) T

Ternary 三元表达式

Types

This section is empty.

Jump to

Keyboard shortcuts

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