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

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