MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / NewStringRef

Function NewStringRef

internal/refs/string.go:4–6  ·  view source on GitHub ↗

NewStringRef returns a reference to a string with given value

(v string)

Source from the content-addressed store, hash-verified

2
3// NewStringRef returns a reference to a string with given value
4func NewStringRef(v string) *string {
5 return &v
6}
7
8// StringValue returns the value of the given string ref
9func StringValue(r *string, defaultValue ...string) string {

Callers 15

TestResendOTPFunction · 0.92
TestUpdateWebhookTestFunction · 0.92
TestAddWebhookTestFunction · 0.92
TestUserFunction · 0.92
TestTOTPAtRestFunction · 0.92
TestUpdateProfileFunction · 0.92
TestFGAFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestResendOTPFunction · 0.74
TestUpdateWebhookTestFunction · 0.74
TestAddWebhookTestFunction · 0.74
TestUserFunction · 0.74
TestTOTPAtRestFunction · 0.74
TestUpdateProfileFunction · 0.74
TestFGAFunction · 0.74