diff --git a/entc/load/internal/bindata.go b/entc/load/internal/bindata.go index 3d312b975..93f4e6e78 100644 --- a/entc/load/internal/bindata.go +++ b/entc/load/internal/bindata.go @@ -78,7 +78,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _templateMainTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\x91\x51\x4f\xdb\x30\x14\x85\x9f\xe3\x5f\x71\x16\x31\x91\xb0\xe2\x02\x6f\x9b\xd4\x07\x04\x9d\xd4\x69\x83\x49\x45\xda\x03\x43\xc8\x75\x6e\x5a\x8b\xd4\xce\xae\x5d\xb4\xca\xca\x7f\x9f\xec\xb4\x6c\x7b\x4b\x7c\xbe\x7b\xce\xb9\x76\x8c\xd3\x33\x71\xe3\xfa\x3d\x9b\xf5\x26\xe0\xea\xe2\xf2\xe3\x79\xcf\xe4\xc9\x06\x7c\x56\x9a\x56\xce\xbd\x60\x61\xb5\xc4\x75\xd7\x21\x43\x1e\x49\xe7\x57\x6a\xa4\x78\xd8\x18\x0f\xef\x76\xac\x09\xda\x35\x04\xe3\xd1\x19\x4d\xd6\x53\x83\x9d\x6d\x88\x11\x36\x84\xeb\x5e\xe9\x0d\xe1\x4a\x5e\x1c\x55\xb4\x6e\x67\x1b\x61\x6c\xd6\xbf\x2e\x6e\xe6\x77\xcb\x39\x5a\xd3\x11\x0e\x67\xec\x5c\x40\x63\x98\x74\x70\xbc\x87\x6b\x11\xfe\x09\x0b\x4c\x24\xc5\xd9\x74\x18\x84\x88\x11\x0d\xb5\xc6\x12\xca\xad\x32\xb6\xc4\x30\x88\xe9\x14\x37\xa9\xcf\x9a\x2c\xb1\x0a\xd4\x60\xb5\xc7\x29\xd9\xa0\xdf\x8e\x4e\x25\x6e\xef\x71\x77\xff\x80\xf9\xed\xe2\x41\x8a\x5e\xe9\x17\xb5\x26\x24\x0f\x21\xcc\xb6\x77\x1c\x50\x89\xa2\x74\xbe\x14\x45\xb9\xda\x07\x4a\x1f\x31\x22\xd0\xb6\xef\x54\x20\x94\x23\xe5\x73\xa4\x28\xc8\x06\xaf\x37\xb4\x55\x88\x11\x3d\x1b\x1b\x5a\x94\xef\x7f\x95\x90\xdf\x0f\xde\xc3\x20\x6a\x21\x5e\x15\x63\x04\x3d\x66\x78\x7c\x22\x1b\xe4\xc2\x06\xe2\x56\x69\x8a\x29\xe2\x1c\xac\xec\x9a\x70\xf2\x3c\xc1\x89\x55\x5b\xc2\xa7\x19\xe4\x9d\xda\x92\x4f\x1e\xc5\xdf\x28\x99\xe0\xb7\x2c\x1f\x87\xf2\x30\x30\x0c\x93\xd1\x89\x6c\x93\x66\x06\x21\xda\x9d\xd5\x79\xbd\xaa\x46\x14\x45\xaa\xd1\x19\x4b\x1e\x8f\x4f\x8f\x4f\x69\x3f\x51\xb4\x8e\xf1\x3c\x39\xb4\x4b\xa1\x63\x8f\x63\xdb\x28\x8a\x62\x35\x01\x31\x27\xed\x9b\x62\xbf\x51\xdd\x32\x8b\xd5\xc8\xd4\xa2\x28\x4c\x9b\x89\x77\x33\x58\xd3\xe5\x99\xa2\x55\xa6\xab\x88\x39\xc9\xa9\xff\x98\x3b\x83\xea\x7b\xb2\x4d\x95\x7f\x27\x58\xd5\x22\xa9\xce\xcb\x65\x68\xdc\x2e\xc8\x1f\x6c\x02\x55\xf9\xea\xe5\x17\x67\xec\x11\x1c\xeb\x56\xe5\x4f\x5b\xd6\x75\xfd\xb6\xdb\x31\x25\xc5\x3b\xce\x4b\x8e\x5e\xc4\x3c\x7a\x2d\x03\x1b\xbb\x4e\x8c\x9c\x27\xa6\xaa\x3f\x64\x93\x0c\xce\x7f\x9b\x50\x5d\x66\xbb\xff\x5e\x79\xdc\x6c\x7c\xe4\x18\x8f\x17\xfa\x27\x00\x00\xff\xff\x54\xe7\x81\x8f\x3b\x03\x00\x00") +var _templateMainTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\x91\x51\x6f\xd3\x30\x14\x85\x9f\xe3\x5f\x71\x88\x40\x4b\x46\xe7\x6e\x7b\x03\xa9\x0f\xd3\x56\xa4\x22\xd8\x90\x3a\x89\x87\x31\x21\xd7\xb9\x69\xad\xa5\x76\xb8\x76\x27\x2a\x2b\xff\x1d\xd9\x69\x0b\xbc\x25\x3e\xdf\x3d\xe7\x5c\x3b\xc6\xe9\xb9\xb8\x75\xfd\x9e\xcd\x7a\x13\x70\x7d\x79\xf5\xe1\xa2\x67\xf2\x64\x03\x3e\x29\x4d\x2b\xe7\x5e\xb0\xb0\x5a\xe2\xa6\xeb\x90\x21\x8f\xa4\xf3\x2b\x35\x52\x3c\x6e\x8c\x87\x77\x3b\xd6\x04\xed\x1a\x82\xf1\xe8\x8c\x26\xeb\xa9\xc1\xce\x36\xc4\x08\x1b\xc2\x4d\xaf\xf4\x86\x70\x2d\x2f\x8f\x2a\x5a\xb7\xb3\x8d\x30\x36\xeb\x5f\x16\xb7\xf3\xfb\xe5\x1c\xad\xe9\x08\x87\x33\x76\x2e\xa0\x31\x4c\x3a\x38\xde\xc3\xb5\x08\xff\x84\x05\x26\x92\xe2\x7c\x3a\x0c\x42\xc4\x88\x86\x5a\x63\x09\xe5\x56\x19\x5b\x62\x18\xc4\x74\x8a\xdb\xd4\x67\x4d\x96\x58\x05\x6a\xb0\xda\xe3\x8c\x6c\xd0\xa7\xa3\x33\x89\xbb\x07\xdc\x3f\x3c\x62\x7e\xb7\x78\x94\xa2\x57\xfa\x45\xad\x09\xc9\x43\x08\xb3\xed\x1d\x07\x54\xa2\x28\x9d\x2f\x45\x51\xae\xf6\x81\xd2\x47\x8c\x08\xb4\xed\x3b\x15\x08\xe5\x48\xf9\x1c\x29\x0a\xb2\xc1\xeb\x0d\x6d\x15\x62\x44\xcf\xc6\x86\x16\xe5\xbb\x5f\x25\xe4\xb7\x83\xf7\x30\x88\x5a\x88\x57\xc5\x18\x41\x8f\x19\x9e\x9e\xc9\x06\xb9\xb0\x81\xb8\x55\x9a\x62\x8a\xb8\x00\x2b\xbb\x26\xbc\xb5\x6a\x4b\xf8\x38\x83\xbc\x57\x5b\xf2\x69\xbe\xf8\x1b\x23\x13\x78\xca\xf1\x71\x28\x0f\x03\xc3\x30\x19\x5d\xc8\x36\x69\x66\x10\xa2\xdd\x59\x9d\x57\xab\x6a\x44\x51\xa4\x0a\x9d\xb1\xe4\xf1\xf4\xfc\xf4\x9c\x76\x13\x45\xeb\x18\x3f\x27\x87\x66\x29\x74\xec\x70\x6c\x1a\x45\x51\xac\x26\x20\xe6\xa4\x7d\x55\xec\x37\xaa\x5b\x66\xb1\x1a\x99\x5a\x14\x85\x69\x33\xf1\x66\x06\x6b\xba\x3c\x53\xb4\xca\x74\x15\x31\x27\x39\xf5\x1f\x73\x67\x50\x7d\x4f\xb6\xa9\xf2\xef\x04\xab\x5a\x24\xd5\x79\xb9\x0c\x8d\xdb\x05\xf9\x9d\x4d\xa0\x2a\x5f\xbb\xfc\xec\x8c\x3d\x82\x63\xdd\xaa\xfc\x61\xcb\xba\xae\x4f\xbb\x1d\x53\x52\xbc\xe3\xbc\xe4\xe8\x45\xcc\xa3\xd7\x32\xb0\xb1\xeb\xc4\xc8\x79\x62\xaa\xfa\x7d\x36\xc9\xe0\xfc\xb7\x09\xd5\x55\xb6\xfb\xef\x85\xc7\xcd\xc6\x07\x8e\xf1\x78\xa1\x7f\x02\x00\x00\xff\xff\x64\x74\x91\x0a\x37\x03\x00\x00") func templateMainTmplBytes() ([]byte, error) { return bindataRead( @@ -93,7 +93,7 @@ func templateMainTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/main.tmpl", size: 827, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/main.tmpl", size: 823, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/load/template/main.tmpl b/entc/load/template/main.tmpl index f279c1d4b..efdb5e7ce 100644 --- a/entc/load/template/main.tmpl +++ b/entc/load/template/main.tmpl @@ -17,7 +17,7 @@ import ( ) var schemas = []ent.Interface{ - {{- range $_, $name := .Names }} + {{- range $name := .Names }} entschema.{{- printf "%s{}" $name }}, {{- end }} }