sjansen/messageformat

View on GitHub
ast/arguments.go.tmpl

Summary

Maintainability
Test Coverage
package ast

/*
type Argument struct {
    ArgID  string
}
*/

{{ range $type := split "PlainArg,PluralArg,SelectArg,SimpleArg" }}
var _ Argument = &{{ $type }}{}

func (x *{{ $type }}) ArgNameOrNumber() string {
    return x.ArgID
}
{{ end }}