gen

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gen contains types and functions for code generation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File is a generated file

func Generate

func Generate(schema *nero.Schema) ([]*File, error)

Generate generates the repository code

func (*File) Buf added in v0.2.0

func (f *File) Buf() []byte

Bytes returns the bytes

func (*File) Filename added in v0.2.0

func (f *File) Filename() string

Filename returns the filename

func (*File) Render

func (f *File) Render(basePath string) error

Render renders the file to the specified path

Jump to

Keyboard shortcuts

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