Documentation ¶
Index ¶
- func AddDir(sh *shell.Shell, d map[string]string) (string, error)
- func AddPath(sh *shell.Shell, path string, patch map[string]string) (string, error)
- func CatchJar(j string, me Me) ([]byte, error)
- func GetLazy[T any](x IpfsLazy[T], sh *shell.Shell) *T
- func Hash(x interface{}) []byte
- func KeysD[V any](sh *shell.Shell, x DirMap[V]) ([]string, error)
- func MapMap[K comparable, A any, B any, F func(A) B](m map[K]A, fn F) map[K]B
- func MapMap2[K comparable, A any, B any, C comparable, F func(A) (B, C)](m map[K]A, fn F) (n map[K]B, c C)
- func MapMap2E[K comparable, A any, B any, F func(A) (B, error)](m map[K]A, fn F) (n map[K]B, c error)
- func MkJar(tgt []byte, me Me) string
- func Patch(sh *shell.Shell, path string, patch map[string]string) (string, error)
- func PutD[V any](sh *shell.Shell, m *DirMap[V], k string, v IpfsLazy[V]) error
- func Range[T constraints.Integer](f, e T) []T
- func RenderD[V any](v DirMap[V], sh *shell.Shell) (map[string]V, error)
- func Shuffle[T any](s *[]T, r *rand.Rand)
- func ShuffleSeed[T any](s *[]T, seed int64)
- func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
- type DirMap
- type IpfsLazy
- type Me
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapMap ¶
func MapMap[K comparable, A any, B any, F func(A) B](m map[K]A, fn F) map[K]B
func MapMap2 ¶
func MapMap2[K comparable, A any, B any, C comparable, F func(A) (B, C)](m map[K]A, fn F) (n map[K]B, c C)
func MapMap2E ¶
func MapMap2E[K comparable, A any, B any, F func(A) (B, error)](m map[K]A, fn F) (n map[K]B, c error)
func Range ¶
func Range[T constraints.Integer](f, e T) []T
func ShuffleSeed ¶
func SortedKeys ¶
func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K
Types ¶
Click to show internal directories.
Click to hide internal directories.