Documentation
¶
Index ¶
- func CalculateRealSize(v interface{}) int
- func ConvertByJSON[A any, B any](input A) (B, error)
- func DownloadToTempDir(url string) (*os.File, error)
- func FileExists(filePath string) bool
- func Filter[T any](endpoints []T, f func(endpoint T) bool) []T
- func GzipCompress(input []byte) []byte
- func GzipDecompress(input []byte) []byte
- func IsEmpty(s string) bool
- func SaveToWAVFile(filename string, data []byte) (*os.File, error)
- func SendFileChunks(file *os.File, firstSize int, chunkSize int, ch chan []byte)
- func SimplifyHeader(header map[string][]string) map[string]string
- func Ternary[T any](cond bool, trueVal T, falseVal T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertByJSON ¶ added in v0.0.7
ConvertByJSON Convert 转换任意类型 A 到类型 B
func FileExists ¶
func GzipCompress ¶
func GzipDecompress ¶
func SendFileChunks ¶
func SimplifyHeader ¶ added in v0.0.7
SimplifyHeader 压缩 Header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.