slogdriver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

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

Generate generates slog logger specific files.

func GenerateFiles

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

GenerateFiles create log specific files

func GenerateLoggerFile

func GenerateLoggerFile(genpkg string) *codegen.File

GenerateLoggerFile returns the generated slogdriver logger file.

func UpdateExample

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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