ent / ent/ent

Name specification for the generated file

Open
#3,535 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
17.2k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

when ent init GoodsType
```
type GoodsType struct {
ent.Schema
}
```
the struct name is good , but the filename of generated go file name with scheme is "goodstype.go", and the name of file categories is the same as that which is a little bad for the name way.

I advice we can beautify the file name when the object name is a word group , we can also use "UnderScoreCase".

example:
goods_type.go
goods_type
goods_type_create.go
goods_type_delete.go

I wish you could understand my suggestion.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.