github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/gotham-context/before.go (about)

     1  // +build OMIT
     2  
     3  package before
     4  
     5  // START OMIT
     6  func (*ServiceA) HandleRPC(ctx context.Context, a Arg) {
     7  	f(a)
     8  }
     9  
    10  func f(a Args) {
    11  	x.M(a)
    12  }
    13  
    14  func (x *X) M(a Args) {
    15  	// TODO(sameer): pass a real Context here.
    16  	serviceB.IssueRPC(context.TODO(), a) // HL
    17  }
    18  
    19  // END OMIT