shiftgen

command
v0.0.0-...-d0fb51e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 18 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