MCPcopy Index your code
hub / github.com/evcc-io/evcc / StringGetter

Method StringGetter

plugin/javascript.go:95–104  ·  view source on GitHub ↗

StringGetter parses string from request

()

Source from the content-addressed store, hash-verified

93
94// StringGetter parses string from request
95func (p *Javascript) StringGetter() (func() (string, error), error) {
96 return func() (string, error) {
97 v, err := p.handleGetter()
98 if err != nil {
99 return "", err
100 }
101
102 return cast.ToStringE(v)
103 }, nil
104}
105
106var _ BoolGetter = (*Javascript)(nil)
107

Callers

nothing calls this directly

Calls 1

handleGetterMethod · 0.95

Tested by

no test coverage detected