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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     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  			"io/fs":                    "fs",
    26  			"os":                       "os",
    27  			"path/filepath":            "filepath",
    28  			"runtime":                  "runtime",
    29  			"strconv":                  "strconv",
    30  			"strings":                  "strings",
    31  			"sync":                     "sync",
    32  			"syscall":                  "syscall",
    33  		},
    34  		Interfaces: map[string]reflect.Type{},
    35  		NamedTypes: map[string]reflect.Type{
    36  			"Cmd":       reflect.TypeOf((*q.Cmd)(nil)).Elem(),
    37  			"Error":     reflect.TypeOf((*q.Error)(nil)).Elem(),
    38  			"ExitError": reflect.TypeOf((*q.ExitError)(nil)).Elem(),
    39  		},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars: map[string]reflect.Value{
    42  			"ErrNotFound": reflect.ValueOf(&q.ErrNotFound),
    43  		},
    44  		Funcs: map[string]reflect.Value{
    45  			"Command":        reflect.ValueOf(q.Command),
    46  			"CommandContext": reflect.ValueOf(q.CommandContext),
    47  			"LookPath":       reflect.ValueOf(q.LookPath),
    48  		},
    49  		TypedConsts:   map[string]igop.TypedConst{},
    50  		UntypedConsts: map[string]igop.UntypedConst{},
    51  	})
    52  }