MCPcopy Create free account
hub / github.com/devspace-sh/devspace / String

Function String

pkg/util/ptr/ptr.go:4–6  ·  view source on GitHub ↗

String returns a pointer to a string variable

(val string)

Source from the content-addressed store, hash-verified

2
3// String returns a pointer to a string variable
4func String(val string) *string {
5 return &val
6}
7
8// ReverseString returns a string from a string pointer
9func ReverseString(val *string) string {

Callers 7

NewRawFunction · 0.92
TestSimpleFunction · 0.92
TestSimpleFunction · 0.92
NewRawFunction · 0.92
TestSimpleFunction · 0.92
TestParseFunction · 0.92
TestStringFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestSimpleFunction · 0.74
TestSimpleFunction · 0.74
TestSimpleFunction · 0.74
TestParseFunction · 0.74
TestStringFunction · 0.56