gen/writers/angular.go
func NewAngularWriter() (*AngularWriter, error) {
	funcMap := template.FuncMap{
		"comment":     comment,
		"commandLine": commandLine,
		"path":        path,
		"mandatory":   mandatory,
	}
	resourceT, err := template.New("resource-client").Funcs(funcMap).Parse(angularTmpl)
	if err != nil {
		return nil, err
	}
	return &AngularWriter{
		angularTmpl: resourceT,
	}, nil
}
func NewAngularWriter() (*AngularWriter, error) {
	funcMap := template.FuncMap{
		"comment":     comment,
		"commandLine": commandLine,
		"path":        path,
		"mandatory":   mandatory,
	}
	resourceT, err := template.New("resource-client").Funcs(funcMap).Parse(angularTmpl)
	if err != nil {
		return nil, err
	}
	return &AngularWriter{
		angularTmpl: resourceT,
	}, nil
}
// NewAngularWriter creates a new code writer that generates angular.js types.