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

     1  // +build OMIT
     2  
     3  package P
     4  
     5  import (
     6  	"xpkg"
     7  	"ypkg"
     8  
     9  	"golang.org/x/net/context"
    10  )
    11  
    12  func before(x xpkg.X, y ypkg.Y) error { // HL
    13  	return x.M(y)
    14  }
    15  
    16  func after(x xpkg.X, y ypkg.Y) error { // HL
    17  	return x.MContext(context.TODO(), y)
    18  }