gen

package
v0.0.0-...-81e1b32 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(s []byte, packName string, main bool) *jen.File

GenerateFile Generates a jennifer file given a series of bytes a package name and if you want a main function or not

func GenerateFileBytes

func GenerateFileBytes(s []byte, packName string, main bool, formating bool) ([]byte, error)

GenerateFileBytes takes an array of bytes and transforms it into jennifer code

Types

This section is empty.

Jump to

Keyboard shortcuts

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