Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
func
ptr[T any](v T) *T {
32
return
&v
33
}
34
35
func
TestUnsignedTypeSerialization(t *testing.T) {
36
type
TestStruct
struct
{
Callers
3
TestCompatibleScalarConversions
Function · 0.85
TestCompatibleSerializationScenarios
Function · 0.85
TestNumericPointerOptionalInterop
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected