Help us shape the future of Go! Take the 2026 Go Developer Survey

fieldgen

command
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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