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

Function netIPString

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

Source from the content-addressed store, hash-verified

446}
447
448func netIPString(val ref.Val) ref.Val {
449 s := val.(types.String)
450 str := string(s)
451 addr, err := parseIPAddr(str)
452 if err != nil {
453 return types.WrapErr(err)
454 }
455 return IP{Addr: addr}
456}
457
458func netIPToString(val ref.Val) ref.Val {
459 ip := val.(IP)

Callers

nothing calls this directly

Calls 2

WrapErrFunction · 0.92
parseIPAddrFunction · 0.85

Tested by

no test coverage detected