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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package exec
     7  
     8  import (
     9  	q "os/exec"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{
    37  			"Cmd":       reflect.TypeOf((*q.Cmd)(nil)).Elem(),
    38  			"Error":     reflect.TypeOf((*q.Error)(nil)).Elem(),
    39  			"ExitError": reflect.TypeOf((*q.ExitError)(nil)).Elem(),
    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]igop.TypedConst{},
    51  		UntypedConsts: map[string]igop.UntypedConst{},
    52  	})
    53  }