MCPcopy Create free account
hub / github.com/chain/Core / StringSlice

Function StringSlice

env/env.go:163–167  ·  view source on GitHub ↗

StringSlice returns a pointer to a slice of strings. It expects env var name to be a list of items delimited by commas. If env var name is missing, StringSlice returns a pointer to a slice of the value strings.

(name string, value ...string)

Source from the content-addressed store, hash-verified

161// returns a pointer to a slice of the value
162// strings.
163func StringSlice(name string, value ...string) *[]string {
164 p := new([]string)
165 StringSliceVar(p, name, value...)
166 return p
167}
168
169// StringSliceVar defines a new string slice
170// with the specified name. The argument p

Callers 1

TestStringSliceFunction · 0.85

Calls 1

StringSliceVarFunction · 0.85

Tested by 1

TestStringSliceFunction · 0.68