mdg

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CKebab

func CKebab(n mdd.Name) string

func CSep

func CSep(n mdd.Name, sep string) string

func CSnake

func CSnake(n mdd.Name) string

func Camel

func Camel(n mdd.Name, lower1 bool) mdd.Name

func Compare

func Compare(l, r mdd.Name) int

func LCamel

func LCamel(n mdd.Name) string

func LKebab

func LKebab(n mdd.Name) string

func LSep

func LSep(n mdd.Name, sep string) string

func LSnake

func LSnake(n mdd.Name) string

func TemplateFuncs

func TemplateFuncs() map[string]any

func UCamel

func UCamel(n mdd.Name) string

func UKebab

func UKebab(n mdd.Name) string

func USep

func USep(n mdd.Name, sep string) string

func USnake

func USnake(n mdd.Name) string

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