templates

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: 0BSD Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AscGenerator

func AscGenerator(output string, source Source) error

func ClangGenerator

func ClangGenerator(output string, source Source) error

func GenerateCommon

func GenerateCommon(output string, source Source) error

func GenerateFilesFromMap

func GenerateFilesFromMap(output string, source Source, files map[string]func() []byte) error

func RustGenerator

func RustGenerator(output string, source Source) error

func RustTemplateGenerator

func RustTemplateGenerator(output string, source Source) error

Types

type Source

type Source struct {
	Language, Name, Homepage, TemplateName string
	Nsfw                                   int
}

type ToPascalCase

type ToPascalCase struct {
}

func (ToPascalCase) Reset

func (t ToPascalCase) Reset()

func (ToPascalCase) Transform

func (t ToPascalCase) Transform(dst, src []byte, atEOF bool) (nDst int, nSrc int, err error)

Jump to

Keyboard shortcuts

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