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

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