MCPcopy Create free account
hub / github.com/tailscale/tailcat / optString

Function optString

web/main_js.go:265–270  ·  view source on GitHub ↗
(v js.Value, name string)

Source from the content-addressed store, hash-verified

263}
264
265func optString(v js.Value, name string) string {
266 if p := v.Get(name); p.Type() == js.TypeString {
267 return p.String()
268 }
269 return ""
270}
271
272func optLogf(v js.Value) logger.Logf {
273 if v.Get("verbose").Truthy() {

Callers 2

tailcatListenFunction · 0.85
tailcatDialFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected