plugins: github.com/goadesign/plugins/zaplogger Index | Files

package zaplogger

import "github.com/goadesign/plugins/zaplogger"

Index

Package Files

generate.go

func Generate Uses

func Generate(genpkg string, roots []eval.Root, files []*codegen.File) ([]*codegen.File, error)

Generate generates zap logger specific files.

func GenerateFiles Uses

func GenerateFiles(genpkg string, root *expr.RootExpr) []*codegen.File

GenerateFiles create log specific files

func GenerateLoggerFile Uses

func GenerateLoggerFile(genpkg string) *codegen.File

GenerateLoggerFile returns the generated zap logger file.

func UpdateExample Uses

func UpdateExample(genpkg string, roots []eval.Root, files []*codegen.File) ([]*codegen.File, error)

UpdateExample modifies the example generated files by replacing the log import reference when needed It also modify the initially generated main and service files

Package zaplogger imports 7 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.