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

Function netIPString

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

Source from the content-addressed store, hash-verified

419}
420
421func netIPString(val ref.Val) ref.Val {
422 s := val.(types.String)
423 str := string(s)
424 addr, err := parseIPAddr(str)
425 if err != nil {
426 return types.WrapErr(err)
427 }
428 return IP{Addr: addr}
429}
430
431func netIPToString(val ref.Val) ref.Val {
432 ip := val.(IP)

Callers

nothing calls this directly

Calls 2

WrapErrFunction · 0.92
parseIPAddrFunction · 0.85

Tested by

no test coverage detected