Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gotify ¶
type Gotify struct {
// contains filtered or unexported fields
}
Gotify provides "gotification" of domain specific identifier names:
underscored names translates into camel case ones.
How the translation is done:
idenitifier name is splitted into chunks and each chunk is to be lowered, samples: abc_def -> [abc, def] AbdDef -> [abd, def] userId -> [user, id]
Then there are choice:
package name (just concat) private identifiers (first chunk is kept lowered, the rest is treated as for public identifiers) public identifiers:
Eeach chunk is looked up in provided dictionary (id -> ID translation is always here) and is replaced with either found translation or just with titled word and then concatenated into the string
abc_def -> AbdDef AbdDef -> AbdDef userId -> UserID
func (*Gotify) Goimports ¶
Goimports generates directory name that can be consumed by goformat utility