MCPcopy
hub / github.com/danielgtaylor/huma / Ptr

Function Ptr

validate_test.go:18–20  ·  view source on GitHub ↗
(v T)

Source from the content-addressed store, hash-verified

16)
17
18func Ptr[T any](v T) *T {
19 return &v
20}
21
22func mapTo[A, B any](s []A, f func(A) B) []B {
23 r := make([]B, len(s))

Callers 8

SchemaMethod · 0.85
TransformSchemaMethod · 0.85
TestSchemaFunction · 0.85
TestCustomUnmarshalTypeFunction · 0.85
TestDowngradeFunction · 0.85
TestFeaturesFunction · 0.85
TestCustomSchemaErrorsFunction · 0.85
validate_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected