package bootstrap

import "github.com/mailru/easyjson/bootstrap"

Package bootstrap implements the bootstrapping logic: generation of a .go file to launch the actual generator and launching the generator itself.

The package may be preferred to a command-line utility if generating the serializers from golang code is required.

Index

Types

type Generator

type Generator struct {
	PkgPath, PkgName string
	Types            []string

	NoStdMarshalers       bool
	SnakeCase             bool
	LowerCamelCase        bool
	OmitEmpty             bool
	DisallowUnknownFields bool

	OutName   string
	BuildTags string

	StubsOnly  bool
	LeaveTemps bool
	NoFormat   bool
}

func (*Generator) Run

func (g *Generator) Run() error

Source Files

bootstrap.go

Version
v0.7.0
Published
Sep 10, 2019
Platform
js/wasm
Imports
6 packages
Last checked
1 year ago

Tools for package owners.