MCPcopy Create free account
hub / github.com/cel-expr/cel-go / netIPString

Function netIPString

ext/network.go:473–481  ·  view source on GitHub ↗
(val ref.Val)

Source from the content-addressed store, hash-verified

471}
472
473func netIPString(val ref.Val) ref.Val {
474 s := val.(types.String)
475 str := string(s)
476 addr, err := parseIPAddr(str)
477 if err != nil {
478 return types.WrapErr(err)
479 }
480 return IP{Addr: addr}
481}
482
483func netIPToString(val ref.Val) ref.Val {
484 ip := val.(IP)

Callers

nothing calls this directly

Calls 2

WrapErrFunction · 0.92
parseIPAddrFunction · 0.85

Tested by

no test coverage detected