File: go1_21_net_netip.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (38 lines) | stat: -rw-r--r-- 1,557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by 'yaegi extract net/netip'. DO NOT EDIT.

//go:build go1.21 && !go1.22
// +build go1.21,!go1.22

package stdlib

import (
	"net/netip"
	"reflect"
)

func init() {
	Symbols["net/netip/netip"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"AddrFrom16":              reflect.ValueOf(netip.AddrFrom16),
		"AddrFrom4":               reflect.ValueOf(netip.AddrFrom4),
		"AddrFromSlice":           reflect.ValueOf(netip.AddrFromSlice),
		"AddrPortFrom":            reflect.ValueOf(netip.AddrPortFrom),
		"IPv4Unspecified":         reflect.ValueOf(netip.IPv4Unspecified),
		"IPv6LinkLocalAllNodes":   reflect.ValueOf(netip.IPv6LinkLocalAllNodes),
		"IPv6LinkLocalAllRouters": reflect.ValueOf(netip.IPv6LinkLocalAllRouters),
		"IPv6Loopback":            reflect.ValueOf(netip.IPv6Loopback),
		"IPv6Unspecified":         reflect.ValueOf(netip.IPv6Unspecified),
		"MustParseAddr":           reflect.ValueOf(netip.MustParseAddr),
		"MustParseAddrPort":       reflect.ValueOf(netip.MustParseAddrPort),
		"MustParsePrefix":         reflect.ValueOf(netip.MustParsePrefix),
		"ParseAddr":               reflect.ValueOf(netip.ParseAddr),
		"ParseAddrPort":           reflect.ValueOf(netip.ParseAddrPort),
		"ParsePrefix":             reflect.ValueOf(netip.ParsePrefix),
		"PrefixFrom":              reflect.ValueOf(netip.PrefixFrom),

		// type definitions
		"Addr":     reflect.ValueOf((*netip.Addr)(nil)),
		"AddrPort": reflect.ValueOf((*netip.AddrPort)(nil)),
		"Prefix":   reflect.ValueOf((*netip.Prefix)(nil)),
	}
}