Go API Documentation

github.com/go-task/task/v3/internal/deepcopy

No package summary is available.

Package

Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Types

Copier

This type doesn't have documentation.

Field name Field type Comment
type

any

No comment on field.

Functions

func Map

func OrderedMap

func Slice

func TraverseStringsFunc

TraverseStringsFunc runs the given function on every string in the given value by traversing it recursively. If the given value is a string, the function will run on a copy of the string and return it. If the value is a struct, map or a slice, the function will recursively call itself for each field or element of the struct, map or slice until all strings inside the struct or slice are replaced.

Uses: reflect.Interface, reflect.Invalid, reflect.MakeMap, reflect.MakeSlice, reflect.Map, reflect.New, reflect.Ptr, reflect.Slice, reflect.String, reflect.Struct, reflect.Value, reflect.ValueOf.