golang

package
v1.2.2-0...-301a9f9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CommonFiles = "common-files"
View Source
const GoGinServerFramework = "go-gin-server"
View Source
const GoGrpcServerFramework = "go-grpc-server"
View Source
const TemplateDirectoryName = "compage-template-go"

TemplateDirectoryName directory of template files

Variables

This section is empty.

Functions

func AddValuesToContext

func AddValuesToContext(ctx context.Context) context.Context

func Generate

func Generate(ctx context.Context) error

Generate generates golang specific code according to config passed

func GetGoTemplatesRootPath

func GetGoTemplatesRootPath() string

func Process

func Process(ctx context.Context) error

func RunGoFmt

func RunGoFmt(directoryName string) error

RunGoFmt runs go-fmt with args passed on generated code present in the directory passed.

func RunMakeProto

func RunMakeProto(directoryName string) error

RunMakeProto runs protoc with args passed on generated code present in the directory passed.

Types

type GoValues

type GoValues struct {
	Values      *languages.Values
	LGoLangNode *LGolangNode
}

type LGolangNode

type LGolangNode struct {
	*languages.LanguageNode
}

LGolangNode language specific struct.

func (*LGolangNode) FillDefaults

func (n *LGolangNode) FillDefaults() error

FillDefaults constructor function

Directories

Path Synopsis
integrations

Jump to

Keyboard shortcuts

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