github.com/goplus/gossa@v0.3.25/pkg/os/signal/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 signal
     7  
     8  import (
     9  	q "os/signal"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "signal",
    19  		Path: "os/signal",
    20  		Deps: map[string]string{
    21  			"context": "context",
    22  			"os":      "os",
    23  			"sync":    "sync",
    24  			"syscall": "syscall",
    25  		},
    26  		Interfaces: map[string]reflect.Type{},
    27  		NamedTypes: map[string]gossa.NamedType{},
    28  		AliasTypes: map[string]reflect.Type{},
    29  		Vars:       map[string]reflect.Value{},
    30  		Funcs: map[string]reflect.Value{
    31  			"Ignore":        reflect.ValueOf(q.Ignore),
    32  			"Ignored":       reflect.ValueOf(q.Ignored),
    33  			"Notify":        reflect.ValueOf(q.Notify),
    34  			"NotifyContext": reflect.ValueOf(q.NotifyContext),
    35  			"Reset":         reflect.ValueOf(q.Reset),
    36  			"Stop":          reflect.ValueOf(q.Stop),
    37  		},
    38  		TypedConsts:   map[string]gossa.TypedConst{},
    39  		UntypedConsts: map[string]gossa.UntypedConst{},
    40  	})
    41  }