fieldgen

command
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package main 提供 mworm 字段常量生成器 用法:

单文件: go run ./cmd/fieldgen -src=path/to/model.go
目录:   go run ./cmd/fieldgen -dir=path/to/models
递归:   go run ./cmd/fieldgen -dir=path/to/models -r

通过 go generate: //go:generate go run github.com/ccxdd/mworm/cmd/fieldgen -src=$GOFILE

Jump to

Keyboard shortcuts

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