mdg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Overview

Package mdg is the Model Drivern Generator Toolbox.

Index

Constants

View Source
const (
	Snake = "_"
	Kebab = "-"
)

Variables

This section is empty.

Functions

func Compare

func Compare(l, r mdd.Name) int

func TemplateFuncs

func TemplateFuncs() map[string]any

Types

type GenDir

type GenDir struct {
	Dir    string
	Suffix string
}

func (GenDir) File

func (d GenDir) File(f string) string

type MergeConfig

type MergeConfig struct {
	TempFile func(string) string
	GenFile  func(string) string
	MkDirs   fs.FileMode
}

type MergedFile

type MergedFile struct {
	// contains filtered or unexported fields
}

func NewMergedFile

func NewMergedFile(name string, cfg *MergeConfig) (*MergedFile, error)

func (*MergedFile) Close

func (f *MergedFile) Close() error

func (*MergedFile) Write

func (f *MergedFile) Write(b []byte) (int, error)

func (*MergedFile) Writes

func (f *MergedFile) Writes(s string) (int, error)

Jump to

Keyboard shortcuts

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