예제 #1
0
파일: directives.go 프로젝트: kgrz/msgp
func passignore(m gen.Method, text []string, p *gen.Printer) error {
	for _, a := range text {
		p.ApplyDirective(m, gen.IgnoreTypename(a))
		infof("%s generation pass: ignoring %s\n", m, a)
	}
	return nil
}
예제 #2
0
파일: directives.go 프로젝트: skatsuta/msgp
func passignore(m gen.Method, text []string, p *gen.Printer) error {
	pushstate(m.String())
	for _, a := range text {
		p.ApplyDirective(m, gen.IgnoreTypename(a))
		infof("ignoring %s\n", a)
	}
	popstate()
	return nil
}