Documentation
¶
Index ¶
- Constants
- func InterfaceAddrs(ctx context.Context, args ...object.Object) object.Object
- func JoinHostPort(ctx context.Context, args ...object.Object) object.Object
- func LookupAddr(ctx context.Context, args ...object.Object) object.Object
- func LookupCNAME(ctx context.Context, args ...object.Object) object.Object
- func LookupHost(ctx context.Context, args ...object.Object) object.Object
- func LookupIP(ctx context.Context, args ...object.Object) object.Object
- func LookupPort(ctx context.Context, args ...object.Object) object.Object
- func LookupTXT(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- func ParseCIDR(ctx context.Context, args ...object.Object) object.Object
- func ParseIP(ctx context.Context, args ...object.Object) object.Object
- func SplitHostPort(ctx context.Context, args ...object.Object) object.Object
- type IP
- func (ip *IP) Cost() int
- func (ip *IP) Equals(other object.Object) object.Object
- func (ip *IP) GetAttr(name string) (object.Object, bool)
- func (ip *IP) Inspect() string
- func (ip *IP) Interface() interface{}
- func (ip *IP) IsTruthy() bool
- func (ip *IP) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (ip *IP) SetAttr(name string, value object.Object) error
- func (ip *IP) String() string
- func (ip *IP) Type() object.Type
- func (ip *IP) Value() net.IP
- type IPNet
- func (n *IPNet) Cost() int
- func (n *IPNet) Equals(other object.Object) object.Object
- func (n *IPNet) GetAttr(name string) (object.Object, bool)
- func (n *IPNet) Inspect() string
- func (n *IPNet) Interface() interface{}
- func (n *IPNet) IsTruthy() bool
- func (n *IPNet) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (n *IPNet) SetAttr(name string, value object.Object) error
- func (n *IPNet) String() string
- func (n *IPNet) Type() object.Type
- func (n *IPNet) Value() *net.IPNet
Constants ¶
View Source
const IPNET object.Type = "net.ipnet"
View Source
const IPTYPE object.Type = "net.ip"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPNet ¶
type IPNet struct {
// contains filtered or unexported fields
}
func (*IPNet) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.