templates

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: 0BSD Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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