github.com/goplus/igop@v0.25.0/pkg/os/exec/go114_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package exec
     6  
     7  import (
     8  	q "os/exec"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.Package{
    17  		Name: "exec",
    18  		Path: "os/exec",
    19  		Deps: map[string]string{
    20  			"bytes":                    "bytes",
    21  			"context":                  "context",
    22  			"errors":                   "errors",
    23  			"internal/syscall/execenv": "execenv",
    24  			"io":                       "io",
    25  			"os":                       "os",
    26  			"path/filepath":            "filepath",
    27  			"runtime":                  "runtime",
    28  			"strconv":                  "strconv",
    29  			"strings":                  "strings",
    30  			"sync":                     "sync",
    31  			"syscall":                  "syscall",
    32  		},
    33  		Interfaces: map[string]reflect.Type{},
    34  		NamedTypes: map[string]reflect.Type{
    35  			"Cmd":       reflect.TypeOf((*q.Cmd)(nil)).Elem(),
    36  			"Error":     reflect.TypeOf((*q.Error)(nil)).Elem(),
    37  			"ExitError": reflect.TypeOf((*q.ExitError)(nil)).Elem(),
    38  		},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars: map[string]reflect.Value{
    41  			"ErrNotFound": reflect.ValueOf(&q.ErrNotFound),
    42  		},
    43  		Funcs: map[string]reflect.Value{
    44  			"Command":        reflect.ValueOf(q.Command),
    45  			"CommandContext": reflect.ValueOf(q.CommandContext),
    46  			"LookPath":       reflect.ValueOf(q.LookPath),
    47  		},
    48  		TypedConsts:   map[string]igop.TypedConst{},
    49  		UntypedConsts: map[string]igop.UntypedConst{},
    50  	})
    51  }