MCPcopy Index your code
hub / github.com/AlekSi/pointer / ToString

Function ToString

pointer.go:82–84  ·  view source on GitHub ↗

ToString returns a pointer to the passed string value.

(s string)

Source from the content-addressed store, hash-verified

80
81// ToString returns a pointer to the passed string value.
82func ToString(s string) *string {
83 return &s
84}
85
86// ToUint returns a pointer to the passed uint value.
87func ToUint(u uint) *uint {

Callers 2

TestStringFunction · 0.85
ExampleFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStringFunction · 0.68
ExampleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…