1package templates 2 3import ( 4 "errors" 5 "fmt" 6) 7 8func before(s string) error { return fmt.Errorf("%s", s) } 9func after(s string) error { 10 n := fmt.Sprintf("error - %s", s) 11 return errors.New(n) 12}
View as plain text