utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToBytesBuffer

func BytesToBytesBuffer(b []byte) bytes.Buffer

func EnsureConsistentEncoding

func EnsureConsistentEncoding(file *os.File) (io.Reader, error)

func FileToBytes

func FileToBytes(filepath string) ([]byte, error)

func FileToBytesBuffer

func FileToBytesBuffer(filepath string) (bytes.Buffer, error)

func FileToString

func FileToString(filepath string) (string, error)

func Ptr

func Ptr[T any](value T) *T

func StringToBytesBuffer

func StringToBytesBuffer(s string) bytes.Buffer

Types

This section is empty.

Jump to

Keyboard shortcuts

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