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

     1  package test
     2  
     3  //go:generate gtrace -v
     4  
     5  //gtrace:gen
     6  //gtrace:set shortcut
     7  type TraceReturningTrace struct {
     8  	OnReturnedTrace func() ReturnedTrace
     9  }
    10  
    11  //gtrace:gen
    12  type ReturnedTrace struct {
    13  	OnSomething func(a, b int)
    14  
    15  	OnFoo func(_ int, _ int)
    16  	OnBar func(_, _ int)
    17  	OnBaz func(int, int)
    18  }