language

package
v0.0.0-...-2d2a31e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct {

	// protoc output dir:
	// {config.outDir}/{language.subDir}/{language.moduleCompilePath}
	ModuleCompilePath string `yaml:"moduleCompilePath"`

	// templates are copied
	// from `assets/templates/{language}/module`
	// to 	`{config.outDir}/{language.subDir}/{language.moduleTemplatePath}`
	ModuleTemplatePath string `yaml:"moduleTemplatePath"`

	// output subdirectory name for language
	SubDir string `yaml:"subDirName"`

	// protoc command to generate code for language e.g. `java_out`, `php_out`...
	ProtocCommand string `yaml:"protocCommand"`

	// additional parameters to be passed for templating
	// documented for every language, or can be used for custom templates
	AdditionalParameters map[string]string `yaml:"additionalParameters"`
}

func MergeWithDefault

func MergeWithDefault(languageName Name, actualLanguage *Language) *Language

type Name

type Name string
const (
	Java       Name = "Java"
	PHP        Name = "PHP"
	TypeScript Name = "TypeScript"
)

func (Name) String

func (name Name) String() string

Jump to

Keyboard shortcuts

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