templates

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplate

func NewTemplate(style []string) (*template.Template, error)

func Styles

func Styles() []string

Types

type TmplCtx

type TmplCtx struct {
	PkgName    string
	MirPkgName string
	MirVersion string
	EngVersion string
}

TmplCtx template context for generate project

func (*TmplCtx) VersionOfEngine

func (c *TmplCtx) VersionOfEngine(defVer string) string

VersionOfEngine return engine's version

func (*TmplCtx) VersionOfMir

func (c *TmplCtx) VersionOfMir(defVer string) string

VersionOfMir return mir's version

Jump to

Keyboard shortcuts

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