MCPcopy Create free account
hub / github.com/apache/fory / ptr

Function ptr

go/fory/struct_test.go:31–33  ·  view source on GitHub ↗
(v T)

Source from the content-addressed store, hash-verified

29)
30
31func ptr[T any](v T) *T {
32 return &v
33}
34
35func TestUnsignedTypeSerialization(t *testing.T) {
36 type TestStruct struct {

Calls

no outgoing calls

Tested by

no test coverage detected