github.com/mattn/anko@v0.1.10/packages/path.filepath.go (about)

     1  package packages
     2  
     3  import (
     4  	"path/filepath"
     5  	"reflect"
     6  
     7  	"github.com/mattn/anko/env"
     8  )
     9  
    10  func init() {
    11  	env.Packages["path/filepath"] = map[string]reflect.Value{
    12  		"Abs":          reflect.ValueOf(filepath.Abs),
    13  		"Base":         reflect.ValueOf(filepath.Base),
    14  		"Clean":        reflect.ValueOf(filepath.Clean),
    15  		"Dir":          reflect.ValueOf(filepath.Dir),
    16  		"EvalSymlinks": reflect.ValueOf(filepath.EvalSymlinks),
    17  		"Ext":          reflect.ValueOf(filepath.Ext),
    18  		"FromSlash":    reflect.ValueOf(filepath.FromSlash),
    19  		"Glob":         reflect.ValueOf(filepath.Glob),
    20  		"HasPrefix":    reflect.ValueOf(filepath.HasPrefix),
    21  		"IsAbs":        reflect.ValueOf(filepath.IsAbs),
    22  		"Join":         reflect.ValueOf(filepath.Join),
    23  		"Match":        reflect.ValueOf(filepath.Match),
    24  		"Rel":          reflect.ValueOf(filepath.Rel),
    25  		"Split":        reflect.ValueOf(filepath.Split),
    26  		"SplitList":    reflect.ValueOf(filepath.SplitList),
    27  		"ToSlash":      reflect.ValueOf(filepath.ToSlash),
    28  		"VolumeName":   reflect.ValueOf(filepath.VolumeName),
    29  	}
    30  }