Documentation
¶
Overview ¶
templ: version: v0.3.924
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructIdent ¶
ConstructIdent combines parts with the given Case and returns a new formatted ident.
Examples:
ConstructIdent(SnakeCase, "get", "user", "response") // "get_user_response" ConstructIdent(CamelCase, "get", "user", "response") // "getUserResponse" ConstructIdent(PascalCase, "get", "user", "response") // "GetUserResponse"
Types ¶
type Generation ¶
Generation represents the generated code for a specific programming language
type InvalidLanguageError ¶
type InvalidLanguageError struct {
// contains filtered or unexported fields
}
func (*InvalidLanguageError) Error ¶
func (err *InvalidLanguageError) Error() string
type TypeScript ¶
type TypeScript struct {
// contains filtered or unexported fields
}
func NewTypeScript ¶
func NewTypeScript(w io.Writer, indent string) *TypeScript
func (*TypeScript) Error ¶
func (ts *TypeScript) Error() error
func (*TypeScript) Generate ¶
func (ts *TypeScript) Generate(document openapi.OpenAPI)
Click to show internal directories.
Click to hide internal directories.