github.com/april1989/origin-go-tools@v0.0.32/refactor/eg/testdata/I.template (about)

     1  // +build ignore
     2  
     3  package templates
     4  
     5  import (
     6  	"errors"
     7  	"fmt"
     8  )
     9  
    10  func before(s string) error { return fmt.Errorf("%s", s) }
    11  func after(s string) error {
    12  	n := fmt.Sprintf("error - %s", s)
    13  	return errors.New(n)
    14  }