Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(dir string) error

CheckDir checks the given dir and reports if there are any VCS conflicts.

func IsBuildError

func IsBuildError(err error) bool

IsBuildError reports if the given error is an error from the Go command (e.g. syntax error).

Types

type Snapshot

type Snapshot struct {
	Path   string      // Path to snapshot.
	Config *gen.Config // Config of codegen.
}

Snapshot describes the schema snapshot restore.

func (*Snapshot) Restore

func (s *Snapshot) Restore() error

Restore restores the generated package from the latest schema snapshot. If there is a conflict between upstream and local snapshots, it is merged before running the code generation.

Source Files