github.com/gobwas/gtrace@v0.4.3/test/test.go (about)

     1  package test
     2  
     3  //go:generate gtrace -v
     4  
     5  //gtrace:gen
     6  //gtrace:set context
     7  //gtrace:set shortcut
     8  type Trace struct {
     9  	OnTest func(string) func(string)
    10  
    11  	OnAction     func(TraceActionStart) func(TraceActionDone)
    12  	OnActionPtr  func(*TraceActionStart) func(*TraceActionDone)
    13  	OnSomething0 func(int8) func(int16) func(int32) func(int64)
    14  	OnSomething1 func(int8, int16) func(int32, int64)
    15  	OnSomething2 func(Type) func(Type) func(Type)
    16  	OnAnother    func()
    17  	OnAnother1   func(named string)
    18  
    19  	// Not supported signatures:
    20  	Skipped0 func() string
    21  	Skipped1 func() (func(), func())
    22  }
    23  
    24  type TraceActionStart struct {
    25  	String string
    26  	Nested Type
    27  }
    28  
    29  type TraceActionDone struct {
    30  	Error error
    31  }