shiftgen

command
v0.0.0-...-83e4fdc Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command shiftgen generates method receivers functions for structs to implement shift Inserter and Updater interfaces. The implementations insert and update rows in mysql.

Note shiftgen does not support generating GetMetadata functions for MetadataInserter or MetadataUpdater since it is orthogonal to inserting and updating domain entity rows.

Usage:
  //go:generate shiftgen -table=model_table -inserter=InsertReq -updaters=UpdateReq,CompleteReq

Jump to

Keyboard shortcuts

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