golang

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFunctionString added in v0.0.8

func CreateFunctionString(s string) (ret string)

CreateFunctionString strips a string of any leading non-alphabetical chars, and all non-alphabetical and non-numerical characters that follow.

func NewGinServerTestConfig added in v0.0.8

func NewGinServerTestConfig() config.Data

func NewGoClientTestConfig added in v0.0.8

func NewGoClientTestConfig() config.Data

func ToTitle added in v0.0.8

func ToTitle(s string) (ret string)

Types

type Renderer

type Renderer struct {
	*render.Base
}

func (*Renderer) GetOutputFilename

func (g *Renderer) GetOutputFilename(n tree.NodeTraverser) string

func (*Renderer) GetTemplateFuncMap

func (g *Renderer) GetTemplateFuncMap() *template.FuncMap

func (*Renderer) SanitiseName

func (g *Renderer) SanitiseName(s []string) string

SanitiseName should consume the result of an NodeTraverser's .GetName() function. It creates a string array that is compliant to go function name restrictions and joins the result before returning a single string.

func (*Renderer) SanitiseType

func (g *Renderer) SanitiseType(n tree.NodeTraverser) string

SanitiseType sanitizes the prepares the contents of the Type field of a node for use by the renderer

func (*Renderer) SetTemplateFuncMap

func (g *Renderer) SetTemplateFuncMap(f *template.FuncMap)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL