MCPcopy Create free account
hub / github.com/VividCortex/siesta / Set

Method Set

params.go:361–366  ·  view source on GitHub ↗

Set is the method to set the param value, part of the flag.Value interface. Set's argument is a string to be parsed to set the param. It's a comma-separated list, so we split it.

(value string)

Source from the content-addressed store, hash-verified

359// Set's argument is a string to be parsed to set the param.
360// It's a comma-separated list, so we split it.
361func (s *SString) Set(value string) error {
362 for _, dt := range strings.Split(value, ",") {
363 *s = append(*s, dt)
364 }
365 return nil
366}
367
368// SliceString defines a multi-value string param with specified name and default value.
369// The return value is the address of a SString variable that stores the values of the param.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected