Documentation
¶
Index ¶
- func Compress(data interface{}, file *os.File, level ...int) error
- func Decompress(fpath string) ([]byte, error)
- func Decrypt(data []byte, key ...interface{}) ([]byte, error)
- func DotProduct(left, right []float32, result *float32)
- func Encrypt(data []byte, key ...interface{}) ([]byte, error)
- func GetFlag[T string | int | bool](long_flag, short_flag *T, value T, necessary bool, flag_name ...string) T
- func Green(s string) string
- func HandleError(err *error, action ...interface{}) error
- func ListDir(fpath string, recurse ...bool) ([]string, error)
- func Max[T stdmath.Numeric](a, b T) T
- func Min[T stdmath.Numeric](a, b T) T
- func ReadFile(file_path string, chunk_size ...int) ([]byte, error)
- func Red(s string) string
- func RunCMD(fs string) error
- func RunLooseCMD(fs string)
- func RunReallyLooseCMD(fs string)
- func RunReturnCMD(fs string) (string, error)
- func Ternary[T any](condition bool, first T, second T) T
- func Yellow(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
import ("github.com/cartersusi/stdext/zstd") for full package documentation
func DotProduct ¶
import ("github.com/cartersusi/stdext/math") for full package documentation
func GetFlag ¶
func GetFlag[T string | int | bool](long_flag, short_flag *T, value T, necessary bool, flag_name ...string) T
import ("github.com/cartersusi/stdext/flag") for full package documentation
func HandleError ¶
import ("github.com/cartersusi/stdext/errors") for full package documentation
func RunLooseCMD ¶
func RunLooseCMD(fs string)
import ("github.com/cartersusi/stdext/exec") for full package documentation
func RunReallyLooseCMD ¶
func RunReallyLooseCMD(fs string)
import ("github.com/cartersusi/stdext/exec") for full package documentation
func RunReturnCMD ¶
import ("github.com/cartersusi/stdext/exec") for full package documentation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.