templates

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CliTemplateMainGo = `` /* 653-byte string literal not displayed */

CliTemplateMainGo holds cli template main.go

View Source
const EmbedGo = `` /* 2119-byte string literal not displayed */
View Source
const FSGo = `` /* 1936-byte string literal not displayed */

FSGo holds stored (embedded) files template

View Source
const GOCOMUGo = `` /* 493-byte string literal not displayed */

GOCOMUGo holds the gocomu.go template

View Source
const GuiMainGo = `` /* 581-byte string literal not displayed */

GuiMainGo holds gui template main.go

View Source
const ServeGo = `//+build serve

package main

import (
	"{{ .ProjectName }}/cmd"
)

func main() {
	cmd.GOCOMU()
}
`

ServeGo holds the gocomu serve template

View Source
const SineGo = `` /* 1014-byte string literal not displayed */

SineGo holds the hello world template

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(dir, name, tpl string, data *Data)

CreateFile is an helper for creating new files from templates

Types

type Data

type Data struct {
	ProjectName string
}

Data holds values to be substituted when creating/executing boilerplate templates

Jump to

Keyboard shortcuts

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