utils

package
v1.59.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirSize

func DirSize(path string) (int64, error)

func ExcludeMapKeys

func ExcludeMapKeys[K comparable, V any](a map[K]V, exclude ...K) map[K]V

func Merge

func Merge(data, patch interface{}) (interface{}, error)

func MergeMaps

func MergeMaps[K comparable, V any](a, b map[K]V, exclude ...K) map[K]V

func Sha256

func Sha256(content string) string

func SliceContains

func SliceContains[K comparable](l []K, key K) bool

func SliceContainsObj

func SliceContainsObj[K comparable](l []K, obj K, f func(K, K) bool) bool

func TomlDecode

func TomlDecode(data string) (interface{}, error)

func TomlEncode

func TomlEncode(in interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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