Пример #1
0
func init() {
	err := typewriter.Register(NewListWriter())
	if err != nil {
		panic(err)
	}
	err = typewriter.Register(NewOptionWriter())
	if err != nil {
		panic(err)
	}
	err = typewriter.Register(NewSetWriter())
	if err != nil {
		panic(err)
	}
	err = typewriter.Register(NewPlumbingWriter())
	if err != nil {
		panic(err)
	}
}
Пример #2
0
func init() {
	err := typewriter.Register(NewSetWriter())
	if err != nil {
		panic(err)
	}
}
Пример #3
0
func init() {
	typewriter.Register(&StringerWriter{})
}