templates

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpecterChain = `` /* 407-byte string literal not displayed */

	Chain = `` /* 2191-byte string literal not displayed */

)
View Source
const (
	InitParams = `
func initParams{{GenericLong}}() {{ParamsPath}}{{GenericShort}} {
	return {{ParamsPath}}{{GenericShort}}{}
}
`

	BuildMocks = `` /* 245-byte string literal not displayed */

	GetMockField = `` /* 253-byte string literal not displayed */

)
View Source
const Interface = `
type %s%s interface {
%s
}
`
View Source
const Method = "\t%s(%s) %s"
View Source
const New = `
func New{{GenericLong}}(p Params{{GenericShort}}) {{Interface}}{{GenericShort}} {
	return p.Convert()
}
`

Variables

This section is empty.

Functions

func BulkReplace

func BulkReplace(content string, pairs map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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