Files
yaegi/stdlib/go1_21_net_url.go
ee5ed52051 feat: support go1.22
* feat: support go1.22

* Temporary fix for consistency tests due to language change in for loops

* review: clean old files

---------

Co-authored-by: Fernandez Ludovic <[email protected]>
2024-03-05 17:56:04 +01:00

36 lines
1.2 KiB
Go

// Code generated by 'yaegi extract net/url'. DO NOT EDIT.
//go:build go1.21 && !go1.22
// +build go1.21,!go1.22
package stdlib
import (
"net/url"
"reflect"
)
func init() {
Symbols["net/url/url"] = map[string]reflect.Value{
// function, constant and variable definitions
"JoinPath": reflect.ValueOf(url.JoinPath),
"Parse": reflect.ValueOf(url.Parse),
"ParseQuery": reflect.ValueOf(url.ParseQuery),
"ParseRequestURI": reflect.ValueOf(url.ParseRequestURI),
"PathEscape": reflect.ValueOf(url.PathEscape),
"PathUnescape": reflect.ValueOf(url.PathUnescape),
"QueryEscape": reflect.ValueOf(url.QueryEscape),
"QueryUnescape": reflect.ValueOf(url.QueryUnescape),
"User": reflect.ValueOf(url.User),
"UserPassword": reflect.ValueOf(url.UserPassword),
// type definitions
"Error": reflect.ValueOf((*url.Error)(nil)),
"EscapeError": reflect.ValueOf((*url.EscapeError)(nil)),
"InvalidHostError": reflect.ValueOf((*url.InvalidHostError)(nil)),
"URL": reflect.ValueOf((*url.URL)(nil)),
"Userinfo": reflect.ValueOf((*url.Userinfo)(nil)),
"Values": reflect.ValueOf((*url.Values)(nil)),
}
}