github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_path_filepath.go (about)

     1  // Code generated by 'yaegi extract path/filepath'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     5  
     6  package stdlib
     7  
     8  import (
     9  	"go/constant"
    10  	"go/token"
    11  	"path/filepath"
    12  	"reflect"
    13  )
    14  
    15  func init() {
    16  	Symbols["path/filepath/filepath"] = map[string]reflect.Value{
    17  		// function, constant and variable definitions
    18  		"Abs":           reflect.ValueOf(filepath.Abs),
    19  		"Base":          reflect.ValueOf(filepath.Base),
    20  		"Clean":         reflect.ValueOf(filepath.Clean),
    21  		"Dir":           reflect.ValueOf(filepath.Dir),
    22  		"ErrBadPattern": reflect.ValueOf(&filepath.ErrBadPattern).Elem(),
    23  		"EvalSymlinks":  reflect.ValueOf(filepath.EvalSymlinks),
    24  		"Ext":           reflect.ValueOf(filepath.Ext),
    25  		"FromSlash":     reflect.ValueOf(filepath.FromSlash),
    26  		"Glob":          reflect.ValueOf(filepath.Glob),
    27  		"HasPrefix":     reflect.ValueOf(filepath.HasPrefix),
    28  		"IsAbs":         reflect.ValueOf(filepath.IsAbs),
    29  		"Join":          reflect.ValueOf(filepath.Join),
    30  		"ListSeparator": reflect.ValueOf(constant.MakeFromLiteral("58", token.INT, 0)),
    31  		"Match":         reflect.ValueOf(filepath.Match),
    32  		"Rel":           reflect.ValueOf(filepath.Rel),
    33  		"Separator":     reflect.ValueOf(constant.MakeFromLiteral("47", token.INT, 0)),
    34  		"SkipDir":       reflect.ValueOf(&filepath.SkipDir).Elem(),
    35  		"Split":         reflect.ValueOf(filepath.Split),
    36  		"SplitList":     reflect.ValueOf(filepath.SplitList),
    37  		"ToSlash":       reflect.ValueOf(filepath.ToSlash),
    38  		"VolumeName":    reflect.ValueOf(filepath.VolumeName),
    39  		"Walk":          reflect.ValueOf(filepath.Walk),
    40  		"WalkDir":       reflect.ValueOf(filepath.WalkDir),
    41  
    42  		// type definitions
    43  		"WalkFunc": reflect.ValueOf((*filepath.WalkFunc)(nil)),
    44  	}
    45  }