MCPcopy
hub / github.com/go-task/task / Scalar

Function Scalar

internal/deepcopy/deepcopy.go:13–20  ·  view source on GitHub ↗
(orig *T)

Source from the content-addressed store, hash-verified

11}
12
13func Scalar[T any](orig *T) *T {
14 if orig == nil {
15 return nil
16 } else {
17 v := *orig
18 return &v
19 }
20}
21
22func Slice[T any](orig []T) []T {
23 if orig == nil {

Callers 4

compiledTaskMethod · 0.92
UnmarshalYAMLMethod · 0.92
DeepCopyMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…