templates

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 6 Imported by: 0

README

templates

Templates to generate code

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCachedValue

func CreateCachedValue(fileDetails FileDetails, details CachedValueTemplateDetails) (err error)

func CreateTemplate

func CreateTemplate(templateContent string, fileDetails FileDetails, details interface{}) (err error)

Types

type CachedValueTemplateDetails

type CachedValueTemplateDetails struct {
	// Has no reset function
	NoReset bool
	// Type of queue element
	ElementType string
	// Type name (defaults to ElementTypeCachedValue)
	TypeName string
}

type FileDetails

type FileDetails struct {
	// Target go file to create
	TargetFile string
	// Package name (default = last directory in path)
	Package string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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