MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / stringConst

Function stringConst

types/const.go:38–40  ·  view source on GitHub ↗

stringConst returns a 'string' constant that evaluates to s.

(s string)

Source from the content-addressed store, hash-verified

36
37// stringConst returns a 'string' constant that evaluates to s.
38func stringConst(s string) *SSAConst {
39 return NewSSAConst(constant.MakeString(s), tString)
40}
41
42// zeroConst returns a new "zero" constant of the specified type,
43// which must not be an array or struct type: the zero values of

Callers 2

makeWrapperKeyMethod · 0.85
selectStmtMethod · 0.85

Calls 1

NewSSAConstFunction · 0.85

Tested by

no test coverage detected