entc/gen: initial support for user-defined ids

Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/162

Reviewed By: alexsn

Differential Revision: D18485086

fbshipit-source-id: 9bb6ccff592bc0cb8b218625161ed492f67bc170
This commit is contained in:
Ariel Mashraki
2019-11-14 08:19:54 -08:00
committed by Facebook Github Bot
parent e161ecc29c
commit d9da7243f9
33 changed files with 3748 additions and 26 deletions

View File

@@ -26,7 +26,8 @@ var (
Funcs = template.FuncMap{
"ops": ops,
"add": add,
"append": reflect.AppendSlice,
"append": reflect.Append,
"appends": reflect.AppendSlice,
"order": order,
"snake": snake,
"pascal": pascal,