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

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