github.com/goplus/gossa@v0.3.25/pkg/os/exec/go114_export.go (about)

     1  // export by github.com/goplus/gossa/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/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    35  			"Cmd":       {reflect.TypeOf((*q.Cmd)(nil)).Elem(), "", "CombinedOutput,Output,Run,Start,StderrPipe,StdinPipe,StdoutPipe,String,Wait,argv,closeDescriptors,envv,stderr,stdin,stdout,writerDescriptor"},
    36  			"Error":     {reflect.TypeOf((*q.Error)(nil)).Elem(), "", "Error,Unwrap"},
    37  			"ExitError": {reflect.TypeOf((*q.ExitError)(nil)).Elem(), "", "Error"},
    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]gossa.TypedConst{},
    49  		UntypedConsts: map[string]gossa.UntypedConst{},
    50  	})
    51  }