From 052ba492940337d5d0895ca30af183b0e72f076a Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Thu, 25 Jun 2020 15:08:43 +0300 Subject: [PATCH] entc/gen: convert GoType to basic type for validators (#568) Fixed #567 --- entc/gen/internal/bindata.go | 16 +++++++-------- entc/gen/template/builder/create.tmpl | 3 ++- entc/gen/template/builder/update.tmpl | 3 ++- entc/gen/template/meta.tmpl | 2 +- entc/gen/template/runtime.tmpl | 4 ++-- entc/gen/type.go | 10 ++++++---- entc/integration/ent/fieldtype/fieldtype.go | 4 ++++ entc/integration/ent/fieldtype_create.go | 10 ++++++++++ entc/integration/ent/fieldtype_update.go | 20 +++++++++++++++++++ entc/integration/ent/runtime.go | 8 ++++++++ entc/integration/ent/schema/fieldtype.go | 2 ++ .../gremlin/ent/fieldtype/fieldtype.go | 4 ++++ .../gremlin/ent/fieldtype_create.go | 10 ++++++++++ .../gremlin/ent/fieldtype_update.go | 20 +++++++++++++++++++ entc/integration/gremlin/ent/runtime.go | 8 ++++++++ 15 files changed, 107 insertions(+), 17 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 6a7d9da04..c16960adf 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -146,7 +146,7 @@ func templateBaseTmpl() (*asset, error) { return a, nil } -var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x56\x61\x6f\xdb\x36\x10\xfd\x2c\xfd\x8a\xab\xa0\x0e\x52\xe0\x28\x69\xbf\x2d\x81\x07\x74\x49\xba\x05\xd8\xba\x01\x69\x8a\x02\x6d\x31\x30\xd2\xc9\x26\x2c\x91\x2a\x49\xb9\x09\x0c\xfd\xf7\xe1\x48\x4a\xa6\xdc\xac\x6b\x03\x04\x88\x4c\xde\xbd\xbb\x7b\xf7\x8e\xe4\x6e\x77\x72\x14\x5f\xc8\xee\x41\xf1\xd5\xda\xc0\xcb\xd3\x17\x3f\x1f\x77\x0a\x35\x0a\x03\xaf\x59\x89\x77\x52\x6e\xe0\x5a\x94\x05\xbc\x6a\x1a\xb0\x46\x1a\x68\x5f\x6d\xb1\x2a\xe2\xb7\x6b\xae\x41\xcb\x5e\x95\x08\xa5\xac\x10\xb8\x86\x86\x97\x28\x34\x56\xd0\x8b\x0a\x15\x98\x35\xc2\xab\x8e\x95\x6b\x84\x97\xc5\xe9\xb8\x0b\xb5\xec\x45\x15\x73\x61\xf7\xff\xb8\xbe\xb8\x7a\x73\x73\x05\x35\x6f\x10\xfc\x9a\x92\xd2\x40\xc5\x15\x96\x46\xaa\x07\x90\x35\x98\x20\x98\x51\x88\x45\x7c\x74\x32\x0c\x71\xbc\xdb\x41\x85\x35\x17\x08\x49\xa9\x90\x19\x4c\x60\x18\x68\x35\xed\x36\x2b\x38\x5b\xc2\x1d\xd3\x08\x69\x71\x21\x45\xcd\x57\xc5\xdf\xac\xdc\xb0\x15\x82\x77\x35\xd8\x76\x0d\x33\x08\xc9\x1a\x59\x85\x2a\x81\xf4\xeb\x2d\xde\x76\x52\x99\x71\xcb\xfd\x82\x2c\x8e\x76\xbb\x63\x50\x4c\xac\x10\xd2\x8e\x99\x35\x05\x4b\x8b\x1b\x7e\xd7\x70\xb1\xba\xb6\x56\x9a\x3c\xa2\x28\xb1\xe9\x90\xc9\x30\x24\xce\x0f\x45\x45\x7b\xb9\x0d\x95\xde\xf5\xbc\x21\xba\xce\x96\xd0\x29\x2e\x0c\x64\x1d\xd3\x25\x6b\x20\x2d\xde\xb0\x16\x73\x48\x2e\xe6\xb5\x29\x2c\x91\x6f\x9d\xc7\xf4\x3d\xc1\x50\x9a\x27\x27\x10\x22\x0f\x03\x75\x87\xa8\x1d\x57\x6a\xa9\xc0\x32\xc6\xc5\x0a\x98\x35\xb6\xc1\xc8\x14\x85\xe1\xe6\xa1\x88\xcd\x43\x87\x87\x30\xda\xa8\xbe\x34\xb0\x8b\xa3\xd2\x52\x1a\x47\x6d\x6f\x98\xe1\x52\xc0\xd1\x6e\x07\x90\x16\x7f\xfa\xdf\x1e\x2d\x8e\xd6\x52\x6e\x34\x7c\xf8\xf4\xbb\x94\x9b\xd8\xb1\xfb\x85\x9b\x35\xe0\xbd\x21\x1e\x52\x48\x7e\x75\xf8\xc9\xac\x86\x68\xd6\x05\x8d\xc6\x90\x45\xe1\x39\xf0\x0c\x52\xa1\x37\x6c\x8b\xae\x16\x74\x35\xce\x8a\xf1\x92\xaa\x98\x61\xa4\x85\x22\xae\x7b\x51\x42\x36\xa3\x71\x18\x6c\xf2\x41\xf4\xdc\xa2\x66\xa5\xb9\x87\x52\x0a\x83\xf7\x86\x24\x44\xff\x73\xc8\x8e\xc2\x00\x0b\x40\xa5\xa4\xca\x89\x12\x6a\x6d\x3a\xf1\x31\xb5\x73\x1f\x28\x29\xc6\xdd\xc4\x97\x78\x0c\x69\xcd\xb1\xa9\xb4\xd3\xcf\x6b\xf7\x3d\x0c\xbb\x1d\xf0\x1a\xd2\xe2\xfa\xb2\xb8\xd5\xa8\x2e\xad\xc8\x2b\xb7\x31\x7a\x2c\x81\x75\x9d\xa5\xd0\x2f\x90\xb9\x33\xf1\xf4\x84\x22\xad\x6d\x84\x7a\x0c\x10\x47\x76\x93\xd7\x20\x15\xa4\x75\x71\x89\x35\xeb\x1b\x03\x19\x13\x15\x64\x42\x1a\x5a\xfc\xab\xa3\x5c\x59\x93\x43\x26\x08\xc2\x15\x6d\xb3\xb2\xca\xcc\x1d\x50\xc4\x6b\xf8\x67\x01\x72\x43\x21\x28\xc1\x89\x83\x61\x28\x6c\xc2\x93\x2a\x7e\x43\x03\xc3\x90\xe5\xe7\xf0\x4c\x6e\x88\xb3\x68\xca\x23\x48\xc2\xa1\x46\xd1\x76\x04\x0c\x26\xd7\x03\x7a\x53\xdf\x05\x47\x97\xab\xe4\x5a\xbf\xe5\x2d\xba\xaf\xdb\x5b\xcb\x48\x96\x07\x9c\xb8\x90\xf3\x24\x6f\xd0\x38\xd8\x1b\xab\x6f\xdb\x06\xf2\xdb\xe6\x53\x86\xd8\x68\x9c\xfc\x15\x9a\x5e\x09\x10\xbc\x59\xc0\x4f\xef\x58\xc3\x2b\x0b\x75\x45\x52\xd8\x51\x4e\x67\x90\x38\x40\x9f\x60\x62\x75\x72\xe6\xc4\xa2\x8b\x37\xf8\x25\x4b\xc6\x63\x6a\x18\xce\xa0\xe5\x5a\xd3\x28\x2a\xfc\xdc\x73\x85\x15\xd8\x46\xc1\xc7\x39\xca\xc7\x24\xc9\x87\x7d\x46\x53\x41\x63\x37\xa7\x15\xfa\x61\x87\xcc\x51\xe2\x33\x94\x4a\x3b\x5a\xae\x44\xdf\xee\x5b\xb7\xfd\xd1\xd6\x4d\x9d\xe3\x35\x15\xf4\xdf\x4d\x9a\xe2\x3a\x2e\xcf\xad\xf5\xb3\x25\xf1\xe6\x11\x9e\xce\x64\xdd\x9a\xc2\x5a\xd5\x73\x26\xb7\x53\xcc\x9a\xf1\x86\x98\xa4\xcf\xc7\xd9\x3c\x83\xe7\x5f\x1c\x9e\xa7\xf5\x51\x36\x0f\xbf\xfd\x40\xa1\x1b\xd9\xab\x6a\x85\xf3\x81\xb2\xc3\x83\xd3\xf0\x78\xa2\x47\x95\x63\x71\x2b\xf8\xe7\x7e\xd2\xd2\xff\xcd\x0e\x1e\x68\xf2\xfa\x72\x36\x3d\x87\xd2\xe4\x35\x34\x28\xb2\xef\x43\xd2\x59\x9e\xc3\x72\x09\xa7\x01\xd6\x7e\x4a\xbe\xb7\x35\xf8\x64\x91\x63\xb5\x42\xdf\x15\xfc\x4a\xe3\xdf\x6a\xc3\x96\x29\xba\x83\x23\xd2\x93\x8d\x16\x47\x91\xa0\x47\xc8\xec\x6c\x8e\xa3\x3c\x0e\x09\x09\x0e\xfc\xc2\xde\x4a\x41\xf1\xe4\x6d\xd3\x07\xd7\x86\xd0\xd6\x62\xde\x18\xa9\x9c\xb8\xc7\xab\x21\x8f\xa3\xc1\x71\x4f\x00\x94\x52\xdb\x1b\xb0\xe3\x22\x09\xc6\x7e\xe1\xeb\x5e\x94\x19\x5d\x3a\x8f\xdd\x26\x0b\x68\x61\x9c\xaf\x1c\xb2\x77\xac\xe9\x31\xbc\x51\xa2\xe9\x7a\x1d\x25\xd2\x16\xfe\xfe\x39\xb8\x67\x73\x3f\xcc\xfb\x63\x35\x6c\x5f\x38\x2c\xbd\xc0\xfb\x0e\x4b\x83\x15\x4c\x0a\xb1\x57\xfd\xf3\xb7\xc9\x02\xda\x7c\xe4\xfe\xf0\x90\x84\xe5\x64\x4f\xbb\x4f\x23\x6c\x5f\x50\x51\x49\x81\xb0\x04\xa3\x7a\x8c\x83\x74\x47\xd8\x38\x8a\x6c\x51\x34\xbe\x9c\x2a\xff\x46\x17\x8f\xe1\xc5\x39\x70\xf8\x65\x09\xa7\xe7\xc0\x8f\x8f\x27\xea\x1e\xc9\xcd\xba\x7c\xe0\x9f\xb2\xb6\x37\x84\x4f\xa5\xba\x19\xf4\x47\x59\xdb\x1b\x47\xae\xcd\x79\x71\x38\x94\x8f\x9c\x62\x21\xd3\x3e\xf3\x98\xfe\xbe\x2a\x69\xff\x60\x79\x0f\x25\x6b\x1a\xed\x1e\x2f\x74\xe5\x76\x4c\xf0\x52\xd3\x09\x61\x97\x9c\xab\x06\x26\x9c\x1a\x7e\xe8\xdd\xf2\xfe\xf1\x87\xcb\x6c\x36\x28\xf3\xed\x22\x3c\xbe\x43\x92\x82\x8e\xf9\x33\x3e\xa8\xd7\xa6\x9a\xd1\xa1\x19\x56\xb9\xfd\xc1\xb7\x5d\x6a\xda\xae\x99\x1e\x49\x35\x24\x15\x67\x0d\x96\xe6\xe4\xb9\x3e\x19\xdf\xf2\xa1\x88\xac\xd3\xfd\xf4\x22\x74\xee\x87\xcf\xc1\xfd\xe7\xbf\x01\x00\x00\xff\xff\x6c\xc9\x7a\x59\xde\x0c\x00\x00") +var _templateBuilderCreateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x56\x61\x6b\xdc\x38\x10\xfd\x6c\xff\x8a\xa9\x71\x0f\x3b\x6c\x9c\xb4\xdf\x2e\x61\x0f\xda\x24\xbd\x0b\xdc\xf5\x0e\x92\x94\x42\x5b\x0e\xc5\x1e\xef\x8a\xb5\x25\x57\x92\xb7\x09\x8b\xff\xfb\x31\x92\xec\x95\xb7\xb9\xd2\x16\x02\xd1\x5a\x33\x6f\xde\xbc\x99\x91\xb4\xdb\x9d\x1c\xc5\x17\xb2\x7b\x54\x7c\xb5\x36\xf0\xf2\xf4\xc5\xaf\xc7\x9d\x42\x8d\xc2\xc0\x1b\x56\xe2\xbd\x94\x1b\xb8\x16\x65\x01\xaf\x9a\x06\xac\x91\x06\xda\x57\x5b\xac\x8a\xf8\x76\xcd\x35\x68\xd9\xab\x12\xa1\x94\x15\x02\xd7\xd0\xf0\x12\x85\xc6\x0a\x7a\x51\xa1\x02\xb3\x46\x78\xd5\xb1\x72\x8d\xf0\xb2\x38\x1d\x77\xa1\x96\xbd\xa8\x62\x2e\xec\xfe\x9f\xd7\x17\x57\x6f\x6f\xae\xa0\xe6\x0d\x82\xff\xa6\xa4\x34\x50\x71\x85\xa5\x91\xea\x11\x64\x0d\x26\x08\x66\x14\x62\x11\x1f\x9d\x0c\x43\x1c\xef\x76\x50\x61\xcd\x05\x42\x52\x2a\x64\x06\x13\x18\x06\xfa\x9a\x76\x9b\x15\x9c\x2d\xe1\x9e\x69\x84\xb4\xb8\x90\xa2\xe6\xab\xe2\x1f\x56\x6e\xd8\x0a\xc1\xbb\x1a\x6c\xbb\x86\x19\x84\x64\x8d\xac\x42\x95\x40\xfa\xf5\x16\x6f\x3b\xa9\xcc\xb8\xe5\x7e\x41\x16\x47\xbb\xdd\x31\x28\x26\x56\x08\x69\xc7\xcc\x9a\x82\xa5\xc5\x0d\xbf\x6f\xb8\x58\x5d\x5b\x2b\x4d\x1e\x51\x94\x58\x3a\x64\x32\x0c\x89\xf3\x43\x51\xd1\x5e\x6e\x43\xa5\xf7\x3d\x6f\x48\xae\xb3\x25\x74\x8a\x0b\x03\x59\xc7\x74\xc9\x1a\x48\x8b\xb7\xac\xc5\x1c\x92\x8b\x79\x6e\x0a\x4b\xe4\x5b\xe7\x31\xad\x27\x18\xa2\x79\x72\x02\x21\xf2\x30\x50\x75\x48\xda\xf1\x4b\x2d\x15\x58\xc5\xb8\x58\x01\xb3\xc6\x36\x18\x99\xa2\x30\xdc\x3c\x16\xb1\x79\xec\xf0\x10\x46\x1b\xd5\x97\x06\x76\x71\x54\x5a\x49\xe3\xa8\xed\x0d\x33\x5c\x0a\x38\xda\xed\x00\xd2\xe2\x2f\xff\xdb\xa3\xc5\xd1\x5a\xca\x8d\x86\x0f\x9f\xfe\x90\x72\x13\x3b\x75\xbf\x70\xb3\x06\x7c\x30\xa4\x43\x0a\xc9\x6b\x87\x9f\xcc\x72\x88\x66\x55\xd0\x68\x0c\x59\x14\x5e\x03\xaf\x20\x25\x7a\xc3\xb6\xe8\x72\x41\x97\xe3\x2c\x19\xdf\x52\x15\x33\x8c\x7a\xa1\x88\xeb\x5e\x94\x90\xcd\x64\x1c\x06\x4b\x3e\x88\x9e\x5b\xd4\xac\x34\x0f\x50\x4a\x61\xf0\xc1\x50\x0b\xd1\xff\x1c\xb2\xa3\x30\xc0\x02\x50\x29\xa9\x72\x92\x84\x4a\x9b\x4e\x7a\x4c\xe5\xdc\x07\x4a\x8a\x71\x37\xf1\x29\x1e\x43\x5a\x73\x6c\x2a\xed\xfa\xe7\x8d\x5b\x0f\xc3\x6e\x07\xbc\x86\xb4\xb8\xbe\x2c\xee\x34\xaa\x4b\xdb\xe4\x95\xdb\x18\x3d\x96\xc0\xba\xce\x4a\xe8\x3f\x90\xb9\x33\xf1\xf2\x84\x4d\x5a\xdb\x08\xf5\x18\x20\x8e\xec\x26\xaf\x41\x2a\x48\xeb\xe2\x12\x6b\xd6\x37\x06\x32\x26\x2a\xc8\x84\x34\xf4\xf1\xef\x8e\xb8\xb2\x26\x87\x4c\x10\x84\x4b\xda\xb2\xb2\x9d\x99\x3b\xa0\x88\xd7\xf0\xef\x02\xe4\x86\x42\x10\xc1\x49\x83\x61\x28\x2c\xe1\xa9\x2b\x7e\x47\x03\xc3\x90\xe5\xe7\xf0\x4c\x6e\x48\xb3\x68\xe2\x11\x90\x70\xa8\x51\xb4\x1d\x01\x83\xc9\xf5\x80\xde\xd4\x57\xc1\xc9\xe5\x32\xb9\xd6\xb7\xbc\x45\xb7\xba\xbb\xb3\x8a\x64\x79\xa0\x89\x0b\x39\x27\x79\x83\xc6\xc1\xde\xd8\xfe\xb6\x65\x20\xbf\x6d\x3e\x31\xc4\x46\xe3\xe4\xaf\xd0\xf4\x4a\x80\xe0\xcd\x02\x7e\x79\xc7\x1a\x5e\x59\xa8\x2b\x6a\x85\x1d\x71\x3a\x83\xc4\x01\x7a\x82\x89\xed\x93\x33\xd7\x2c\xba\x78\x8b\x5f\xb2\x64\x3c\xa6\x86\xe1\x0c\x5a\xae\x35\x8d\xa2\xc2\xcf\x3d\x57\x58\x81\x2d\x14\x7c\x9c\xa3\x7c\x4c\x92\x7c\xd8\x33\x9a\x12\x1a\xab\x39\x7d\xa1\x1f\x76\xc8\x9c\x24\x9e\xa1\x54\xda\xc9\x72\x25\xfa\x76\x5f\xba\xed\x8f\x96\x6e\x56\xb9\xf4\x9e\x69\x5e\xba\xe6\x2a\x5e\xd3\xfa\x96\xce\x8d\x64\x9b\x8c\x6a\xf1\x9a\xd2\xfe\xff\x52\x4e\xec\x08\xde\xce\xa1\x45\x1c\x86\xfc\xdc\x3a\x3e\x5b\x92\xd0\x3e\xe4\xcf\x4b\x5f\xb7\xa6\xb0\x56\xf5\x5c\xfa\xed\x14\xbe\x66\xbc\x21\xe9\x69\xf9\xb4\xfc\x67\xf0\xfc\x8b\xc3\xf3\x75\x78\x52\xfe\xc3\xb5\x9f\x40\x74\x33\x7e\x55\xad\x70\x3e\x81\x76\xda\x70\x9a\x36\xaf\xdb\x38\x16\x58\xdc\x09\xfe\xb9\xc7\x40\xce\x6f\x0e\x1b\x1e\x34\xf1\xf5\xe5\x6c\xdc\x0e\x7b\x99\xd7\xd0\xa0\xc8\xbe\x0f\x49\x67\x79\x0e\xcb\x25\x9c\x06\x58\xfb\xb1\xfa\xde\xd2\xe0\x4f\x4f\x05\x56\x2b\xf4\x55\xc1\xaf\x86\xe2\x5b\x65\xd8\x32\x45\x97\x76\x44\xfd\x64\xa3\xc5\x51\x24\xe8\xd5\x32\x3b\xcc\xe3\x28\x8f\x43\x41\x82\x1b\xa2\xb0\xd7\x58\x90\x3c\x79\x5b\xfa\xe0\xca\x10\xda\x5a\xcc\x1b\x23\x95\xeb\xf3\xf1\x2e\xc9\xe3\x68\x70\xda\x13\x00\x51\x6a\x7b\x03\x76\xbe\x24\xc1\xd8\x15\xbe\xe9\x45\x99\xd1\x2d\xf5\xd4\xf5\xb3\x80\x16\xc6\x81\xcc\x21\x7b\xc7\x9a\x1e\xc3\x2b\x28\x9a\xee\xe3\xb1\x45\xda\xc2\x5f\x58\x07\x17\x73\xee\xa7\x7f\x7f\x0e\x87\xe5\x0b\x87\xa5\x17\xf8\xd0\x61\x69\xb0\x82\xa9\x43\xec\xdb\xe0\xf9\x6d\xb2\x80\x36\x1f\xb5\x3f\x3c\x55\x61\x39\xd9\xd3\xee\xcf\x09\xb6\x4f\xa8\xa8\xa4\x40\x58\x82\x51\x3d\xc6\x01\xdd\x11\x36\x8e\x22\x9b\x14\x8d\x2f\xa7\xcc\xbf\x51\xc5\x63\x78\x71\x0e\x1c\x7e\x5b\xc2\xe9\x39\xf0\xe3\xe3\x49\xba\x27\xb8\x59\x97\x0f\xfc\x53\xd6\xf6\x86\xf0\x29\x55\x37\x83\xfe\x54\x6b\x7b\xe3\xc4\xb5\x9c\x17\x87\x43\xf9\xc4\x29\x16\x2a\xed\x99\xc7\xf4\xf7\x55\x4a\xfb\x17\xce\x7b\x28\x59\xd3\x68\xf7\xda\xa1\x3b\xba\x63\x82\x97\x9a\x4e\x08\xfb\xc9\xb9\x6a\x60\xc2\x75\xc3\x0f\x3d\x74\xde\x3f\xfd\xd2\x99\xcd\x06\x31\xdf\x2e\xc2\x93\x3c\x14\x29\xa8\x98\x3f\xee\x83\x7c\x2d\xd5\x8c\x0e\xcd\x30\xcb\xed\x0f\x3e\x06\x53\xd3\x76\xcd\xf4\xaa\xaa\x21\xa9\x38\x6b\xb0\x34\x27\xcf\xf5\xc9\xf8\xf8\x0f\x9b\xc8\x3a\x3d\x4c\x4f\x48\xe7\x7e\xf8\x7e\xdc\x2f\xff\x0b\x00\x00\xff\xff\x7e\x81\xfb\x08\x0f\x0d\x00\x00") func templateBuilderCreateTmplBytes() ([]byte, error) { return bindataRead( @@ -161,7 +161,7 @@ func templateBuilderCreateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/create.tmpl", size: 3294, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/create.tmpl", size: 3343, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -246,7 +246,7 @@ func templateBuilderSetterTmpl() (*asset, error) { return a, nil } -var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\xff\x6f\xdb\xb8\x15\xff\x59\xfa\x2b\x5e\x05\xb7\x90\x02\x5b\x4e\xfb\xdb\x52\x78\xc0\x5d\x9b\x6e\x01\xb6\xde\xd0\xf4\x6e\x87\xe5\x82\x82\x96\x9e\x6c\x2e\x32\xa9\x92\x94\x93\xcc\xd3\xff\x3e\x3c\x52\x5f\x6d\x25\xe7\x14\xd9\x86\x03\x0e\x08\x10\x49\x24\x1f\xdf\xfb\xbc\x6f\x1f\xd2\xbb\xdd\xfc\xc4\x7f\x27\x8b\x7b\xc5\x57\x6b\x03\x6f\x4e\x5f\xff\x61\x56\x28\xd4\x28\x0c\x7c\x60\x09\x2e\xa5\xbc\x81\x0b\x91\xc4\xf0\x5d\x9e\x83\x9d\xa4\x81\xc6\xd5\x16\xd3\xd8\xff\xbc\xe6\x1a\xb4\x2c\x55\x82\x90\xc8\x14\x81\x6b\xc8\x79\x82\x42\x63\x0a\xa5\x48\x51\x81\x59\x23\x7c\x57\xb0\x64\x8d\xf0\x26\x3e\x6d\x46\x21\x93\xa5\x48\x7d\x2e\xec\xf8\x5f\x2e\xde\x9d\x7f\xbc\x3c\x87\x8c\xe7\x08\xf5\x37\x25\xa5\x81\x94\x2b\x4c\x8c\x54\xf7\x20\x33\x30\xbd\xcd\x8c\x42\x8c\xfd\x93\x79\x55\xf9\xfe\x6e\x07\x29\x66\x5c\x20\x04\x65\x91\x32\x83\x01\x54\x15\x7d\x9d\x14\x37\x2b\x38\x5b\xc0\x92\x69\x84\x49\xfc\x4e\x8a\x8c\xaf\xe2\xbf\xb1\xe4\x86\xad\x10\xea\xa5\x06\x37\x45\xce\x0c\x42\xb0\x46\x96\xa2\x0a\x60\x72\x38\xc4\x37\x85\x54\xa6\x19\x72\x6f\x10\xfa\xde\x6e\x37\x03\xc5\xc4\x0a\x61\x52\x30\xb3\xa6\xcd\x26\xf1\x25\x5f\xe6\x5c\xac\x2e\xec\x2c\x4d\x2b\x3c\x2f\xb0\xea\xd0\x94\xaa\x0a\xdc\x3a\x14\x29\x8d\x45\xbe\xdd\x6b\xb2\x2c\x79\x4e\x78\x9d\x2d\xa0\x50\x5c\x18\x08\x0b\xa6\x13\x96\xc3\x24\xfe\xc8\x36\x18\x41\xf0\xe3\xd0\x38\x85\x09\xf2\xad\x5b\xd1\x3e\xb7\x62\xea\x49\x9b\xd2\x30\xc3\xa5\xe8\xc4\x76\xeb\x82\xb8\x19\xb5\x32\xfd\xf9\x1c\xfa\x8a\x54\x15\x79\x93\x5c\xd1\x7c\xc9\xa4\x02\x8b\x30\x17\x2b\x3b\xd5\x6a\x46\x13\x51\x18\x6e\x38\xea\xd8\x37\xf7\x05\xee\x8b\xd1\x46\x95\x89\x81\x9d\xef\x25\xd6\x05\xce\xfe\x0e\x5d\xe7\xb5\x79\xc6\x31\x4f\x35\x81\x3c\x23\xcc\x0a\x85\x29\x4f\x98\x41\x0d\x57\xd7\xed\x4b\xdc\xdf\xd7\x77\x5a\xff\x7d\x8d\x0a\x81\xa5\xa9\x06\x06\x02\x6f\xa1\x9d\x6d\x55\xee\x99\x10\xfb\x59\x29\x12\x08\xfb\xf8\x55\x15\x9c\x0c\x15\x8e\x9c\xc4\xb0\xd0\x10\xc7\xf1\xf8\xd6\xd1\xfe\x22\x32\x6f\x28\x36\xee\x59\xb0\x00\x56\x14\x28\xd2\xf0\xc1\x29\x53\x28\x74\x1c\xc7\x91\xef\x29\x34\xa5\x12\x30\xf0\xb1\xb3\x75\xb7\x83\x5b\x6e\xd6\x80\x77\x86\xa2\x67\x02\xc1\xf7\x6e\xff\x60\xe0\x78\x6f\x10\xbb\x1a\x8d\xa1\x19\x71\x1d\x13\x75\xdc\x7d\x9b\xb0\xda\x55\x98\xae\x50\x1f\x8a\x9c\xcf\xe1\x92\x6d\x11\xf0\x0e\x93\x92\xcc\x26\xe8\xbf\x96\xa8\xee\x81\x89\x14\x9c\x61\xee\xab\x28\x37\x4b\x54\x94\xd6\x4a\xde\xea\xf9\x16\x95\xe1\x09\x6a\xd8\x30\x93\xac\x31\x85\xe5\xbd\xcb\x77\x59\xa0\xb2\x31\x3a\xe6\x3a\x18\xf3\x1d\x69\x10\x26\xe6\x0e\x12\x29\x0c\xde\x19\xca\x7b\xfa\x1f\x41\xc8\x85\x99\x02\x2a\x25\x55\x54\xbb\x6b\x0f\x81\x4f\xb5\xe0\xa0\x9f\x26\x75\xc1\x08\x5c\x3d\x09\xfe\x81\x4a\xfe\xc4\xf2\x12\x03\x38\x75\x91\x3a\x0a\x91\x66\x5b\xac\x11\x6a\xd3\xdd\xce\xde\x32\x45\xa5\xc3\x43\xa5\x9c\x2e\xbe\xe7\xb1\x2c\xc3\xc4\x60\x0a\x5c\x18\xdf\x8b\x7c\x8f\x67\x90\xa3\xd8\x37\x36\x5e\x4b\x79\xa3\x23\x58\x2c\xe0\x94\x0c\x68\xd7\x59\xab\x60\xb1\x1f\x33\x2e\x62\x2f\x8d\x54\xae\xe0\x35\xd0\x44\xbe\x57\x01\xe6\x1a\xad\x10\x52\x68\x53\x1a\xf8\x2b\x55\x03\x49\x62\xec\x13\x7e\x28\x45\x12\x12\xe8\x63\x68\x4e\x61\xe3\xa6\x71\x29\x22\x08\x2d\x20\x7d\x6c\x3d\xaf\x29\x2e\x53\x90\x37\x54\x7e\x36\x71\x68\x7d\x15\x37\xcb\x9a\x4c\xa2\xc9\x3c\x83\x17\xf2\xc6\x2d\x6c\x12\x40\xf0\x7c\x0a\xd9\xc6\xc4\xe7\x24\x35\x0b\x83\x52\xe0\x5d\xe1\x70\x6a\xeb\x9a\xad\x37\x2f\x3f\x07\x53\xd8\x58\x41\xe4\x0e\x6f\x50\xf9\xaa\x0a\x16\xed\x7c\x1a\xfd\x76\xd0\x3a\xa3\xe2\x54\x0a\x84\x05\x18\x55\xa2\xdf\xa9\x3c\x10\xed\x7b\x9e\x35\x8e\x6a\x10\x27\x04\x1e\xf1\xe8\x0c\x5e\xbf\x05\x0e\x7f\x5c\xc0\xe9\x5b\xe0\xb3\x59\x0b\xe1\x88\x7e\x76\xc9\x15\xbf\x0e\x37\xa5\x21\xf9\x64\x32\xcf\xe0\x8b\xb3\xe7\xcc\x1a\xeb\x40\xb6\x7a\x4f\x61\x0f\x8e\xe8\xad\x9d\xf8\x62\x41\x08\xbb\x8d\x6a\xf5\x4f\x5b\xbd\x7d\xfa\x1b\x35\xaa\x4b\xf3\x9f\x5d\xb7\xbf\x41\xfb\x36\x85\x65\x69\xa0\x60\x82\x27\x1a\x78\x06\x4c\xb8\x68\x00\x99\x24\xa5\xd2\x4f\x4a\xdf\x9f\xc7\xf3\x97\xda\xd7\xce\xdf\xf3\xdf\xd9\x21\x40\x3d\x8f\xf1\x6c\xdf\x56\xab\x61\x88\x4a\x45\x63\x36\xd6\xe6\x9d\xdf\x61\x32\x52\xc5\x8e\x36\x82\xd6\x8f\xdb\xe0\x30\xd9\xf9\xde\x97\x63\xd4\xaf\xb5\xeb\x70\x27\xc1\x1d\xee\xf4\xf6\x5c\xb8\x5b\xc9\xe3\x3a\xef\x5a\x1c\x47\xb4\x6d\x4c\x3d\x8c\xaa\x21\xd2\x47\x76\x9c\xbd\x6a\x5b\x37\xa0\x89\xd9\x14\x79\xcb\x61\x32\x08\x52\xce\x72\x4c\xcc\xfc\xa5\x9e\x37\x9c\xaf\x9f\xb3\x76\xd1\x5d\x5b\x93\xdd\xf2\x91\x06\x38\x91\x02\xf7\x89\x57\x06\xc1\x4b\xfd\x83\xc0\xe0\x80\x4c\xb5\x66\xf7\x09\x57\x4f\xc2\x3e\xe7\x3a\x9a\x72\x0d\x64\x3c\xca\xba\x18\x68\x2e\x56\x39\x8e\xd0\xaf\xfb\x1e\xf9\x1a\x0a\x7c\x32\xff\xfa\x75\xb6\x31\xb4\xfa\x38\xc2\xf1\xcd\x02\x9f\x8d\x74\x38\x41\x69\x8b\xd7\x23\xa9\x31\x44\xf0\x51\x56\x71\xd2\xf7\xc5\xb3\xf2\x8b\x40\xf0\x3c\x78\x2e\x8e\x21\xe8\x7c\x36\xd0\xf5\x29\x4c\x83\x56\xff\xce\x32\x9e\xc0\x32\xbe\x0d\xb0\x5f\x65\x18\xad\xd8\xdf\x1e\xbb\xb0\x48\x8f\xf0\x8b\xce\xa4\xff\x06\xb7\x18\x24\xf2\xa3\xf4\x62\x90\x1b\xcd\x71\x2e\xfe\xd4\x09\x7c\x4e\xc2\xb1\x2f\xfb\x71\xe2\x01\xd2\x5d\x8a\x3c\xb5\x70\xfd\x66\x98\xc8\x88\xd6\xff\x47\x32\xd2\xd3\xe6\x7f\xcb\x47\xba\xc7\xf9\x09\xe8\x35\x53\x98\x36\xdd\xdb\x75\x67\x58\xa2\xb9\x45\x74\xd1\x60\x6e\x65\xdd\xd2\x94\x06\x7b\x17\x76\x70\x15\xd6\x34\x75\x52\xc1\x66\x36\x5c\x5d\xff\x59\xca\x1b\xbf\xad\x33\x30\x5a\x2e\x1f\x52\xc6\xf6\x60\x50\xb8\x91\x5b\x96\x3f\x59\x99\xba\x83\xd7\x3c\xa9\x4f\xbc\xdc\x55\x57\x7c\x99\xc8\x02\xe3\xef\x1f\xa0\x5d\xcf\x75\xd1\xb5\xdb\x35\x97\x76\x5f\xa6\x30\x41\x77\x6b\x77\x6e\x2d\xab\x5d\xc5\x33\x98\x60\xfc\xa3\xe0\x5f\x4b\xe7\x3e\xeb\x74\x1b\xbf\xad\xfc\xe0\x5d\x8e\x8c\xa2\x05\xe3\x4b\xeb\xa2\x0f\x04\xb5\x9b\x5d\xf3\x3a\xbb\xa0\xaa\x20\xa1\x99\x2e\x9d\xe9\x33\x76\xc4\x2d\x5d\x21\x18\x59\x7f\xfd\x7c\x5f\xb4\x43\x31\x95\xf6\xe3\x98\x7b\x6f\xa7\x70\xf4\x5a\xea\xa0\x55\xc5\x83\x25\xbd\x12\xbd\x7f\xe7\x64\x2b\x35\x85\x02\x75\xf1\x16\x87\xc2\xb6\x1b\x79\x8b\x0a\xc2\x96\x32\xc7\xaf\x75\x30\x30\x22\x6a\x16\xcc\x4f\x08\x4f\x7b\xe9\x43\xb6\x49\xf7\x5c\x30\xc5\x36\x68\x50\x51\x8a\x67\x39\x4f\x8c\x76\x09\x69\x2f\x7f\x1b\x1d\xec\x0a\x1b\x4d\x5e\xed\x17\xfc\x4a\x0a\x0c\x10\x71\x3a\x2d\x20\xd8\x06\xf5\x6b\x1d\xba\x4e\x5d\x9e\xea\x0f\x43\xcf\x7d\xa2\xf8\xc5\x00\x42\x22\xd3\x65\xce\x54\xeb\x93\x7f\xd7\xa1\x18\x41\x70\xf1\xde\x85\x6a\xeb\xcd\x46\x4e\x55\xb9\x04\xc0\xa7\x79\x14\x96\xf7\xc0\x53\xfd\x44\xc7\x76\x9b\x86\x3c\xb5\xf7\x91\x3d\xc9\x17\xef\xed\xff\x87\xae\x23\xc7\xfd\x3e\x94\xe8\xae\x1c\x1f\x0f\x80\xb1\xe0\x6f\x20\x3c\x22\xfa\x1b\xb0\x0e\x81\xd2\xcf\x1a\xfb\x2e\x0c\xaa\x8a\x40\x3a\x39\x94\xfa\x00\x44\x84\x2a\xb1\x1a\x76\x83\xe1\xd5\xf5\x28\xb8\xd3\x96\x5b\x91\xf8\x28\x6a\x90\xb5\xb4\x2b\xe0\x14\x25\x5d\x6c\x72\x37\xcb\x8d\x2f\x20\xf8\x67\x3d\xdc\x72\x73\x47\xd9\xdc\x78\x55\xd9\xa2\x66\x8b\x51\xab\xbe\xa3\xa7\x3c\xd5\x57\xcd\xa4\xeb\x9a\xa7\xd1\x70\xf7\x31\xbe\x78\xdf\x72\xd1\x71\xf7\x3d\xec\xef\x3a\xad\x5d\x9a\x8c\x3d\x0d\xaa\x7e\xdb\xb8\x9a\xeb\x74\x3a\x78\xc0\x06\xcd\x5a\xa6\x4d\x3e\xbf\x69\x0e\xac\x0f\x56\x7f\x77\x5a\xb1\x43\xb3\xf6\xb7\x99\xba\xe4\x37\x3f\xca\xcc\x9a\xe1\x7f\xa1\x92\xbd\xf1\xf6\x50\xd4\xae\xef\x77\x85\x7a\x52\x4b\xa7\x5a\x29\xc7\x76\x85\x99\xb3\x78\xd6\xef\x0b\x99\xeb\x0b\x1f\x5c\xdf\x9d\x35\x67\x2c\x6a\x0d\x59\xec\x7e\x8b\x79\x8f\x19\x2b\x73\x53\xfb\xd5\xb1\x64\x77\x0c\x19\x2d\xb8\x6d\x93\xfd\x13\x1a\x5b\x79\xdf\xba\xe3\xc8\xae\x16\xfa\x43\x41\x83\x2c\xa7\x20\x78\xf5\x0a\x5e\x8c\x0b\x19\xa6\x9b\x6d\x42\x98\x86\x51\x57\xf6\x5c\x00\x6d\x1b\x35\x7a\x3f\x78\xd5\x12\x06\xca\xd7\xd9\xd1\x2a\x71\xa1\x3f\x73\xfb\x25\x8c\xfa\x85\xf4\xa0\x94\x5c\xa2\x19\xd3\x27\xdc\x0e\xc3\xab\xc6\xcd\x95\x76\x3a\x8f\x87\x52\xd1\xaa\x9f\x58\xce\x53\x3a\x08\x6a\xb7\xe9\xb9\x28\x37\x11\x84\x42\x1a\xfb\xbe\xa1\xad\x96\x39\x46\x1d\xb6\xdb\xa7\x62\xdb\x9c\xf4\x86\x74\xf1\x10\x8e\x56\x15\xa7\xfe\xe1\xf9\xa5\x9f\x5d\x36\x2e\xa9\x24\xbc\xaa\x97\x71\x29\xec\xc9\x71\x47\x40\x9e\x41\xe0\x64\xd6\xa8\x06\x96\x5a\x9f\x0d\xce\x97\xbb\x5d\x43\x25\xcf\x60\xdb\x6e\x9d\x31\x9e\x63\x6a\x13\xcc\x52\x36\xf8\x65\x28\xe9\x97\xe0\x0c\x5e\xde\x3a\x79\x51\xd5\xe4\xfd\x10\xe7\xc1\xe3\xec\x08\x8e\x43\xfe\xe8\x78\x8e\x03\x1f\xdb\x30\x8c\x8e\x8c\xeb\xfd\x0e\x70\xf1\x9e\xd0\x3f\x66\x66\x17\xbc\x14\xee\x8d\xbf\xc6\xd0\xb6\x07\x09\x1d\x7f\xc4\xdb\x21\x80\x96\x59\xb9\x8b\xb1\xd2\x59\x61\x1b\xb0\x03\x0f\x3b\xf0\x82\xc3\xa8\x3c\x7c\xac\x2a\xff\x3f\x01\x00\x00\xff\xff\x89\x29\xff\xc7\x10\x1f\x00\x00") +var _templateBuilderUpdateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\x6d\x6f\xdb\xba\xf5\x7f\x2d\x7d\x8a\x53\xc1\x2d\xa4\xc0\x96\xd3\xbe\xfb\xa7\xf0\x1f\xb8\x6d\xd3\x2d\xc0\xd6\x3b\x34\xbd\x77\x17\xcb\x0d\x0a\x5a\x3a\xb2\xb9\xc8\xa4\x4a\x52\x4e\x32\x4f\xdf\x7d\x38\xa4\x1e\x6d\x25\xd7\x29\xb2\x0d\x17\x18\x10\x20\x92\x48\x1e\x9e\xf3\x3b\x4f\x3f\xd2\xbb\xdd\xfc\xc4\x7f\x2f\x8b\x7b\xc5\x57\x6b\x03\x6f\x4e\x5f\xff\xdf\xac\x50\xa8\x51\x18\xf8\xc8\x12\x5c\x4a\x79\x03\x17\x22\x89\xe1\x87\x3c\x07\x3b\x49\x03\x8d\xab\x2d\xa6\xb1\xff\x65\xcd\x35\x68\x59\xaa\x04\x21\x91\x29\x02\xd7\x90\xf3\x04\x85\xc6\x14\x4a\x91\xa2\x02\xb3\x46\xf8\xa1\x60\xc9\x1a\xe1\x4d\x7c\xda\x8c\x42\x26\x4b\x91\xfa\x5c\xd8\xf1\x3f\x5d\xbc\x3f\xff\x74\x79\x0e\x19\xcf\x11\xea\x6f\x4a\x4a\x03\x29\x57\x98\x18\xa9\xee\x41\x66\x60\x7a\x9b\x19\x85\x18\xfb\x27\xf3\xaa\xf2\xfd\xdd\x0e\x52\xcc\xb8\x40\x08\xca\x22\x65\x06\x03\xa8\x2a\xfa\x3a\x29\x6e\x56\x70\xb6\x80\x25\xd3\x08\x93\xf8\xbd\x14\x19\x5f\xc5\x7f\x61\xc9\x0d\x5b\x21\xd4\x4b\x0d\x6e\x8a\x9c\x19\x84\x60\x8d\x2c\x45\x15\xc0\xe4\x70\x88\x6f\x0a\xa9\x4c\x33\xe4\xde\x20\xf4\xbd\xdd\x6e\x06\x8a\x89\x15\xc2\xa4\x60\x66\x4d\x9b\x4d\xe2\x4b\xbe\xcc\xb9\x58\x5d\xd8\x59\x9a\x56\x78\x5e\x60\xd5\xa1\x29\x55\x15\xb8\x75\x28\x52\x1a\x8b\x7c\xbb\xd7\x64\x59\xf2\x9c\xf0\x3a\x5b\x40\xa1\xb8\x30\x10\x16\x4c\x27\x2c\x87\x49\xfc\x89\x6d\x30\x82\xe0\xa7\xa1\x71\x0a\x13\xe4\x5b\xb7\xa2\x7d\x6e\xc5\xd4\x93\x36\xa5\x61\x86\x4b\xd1\x89\xed\xd6\x05\x71\x33\x6a\x65\xfa\xf3\x39\xf4\x15\xa9\x2a\xf2\x26\xb9\xa2\xf9\x92\x49\x05\x16\x61\x2e\x56\x76\xaa\xd5\x8c\x26\xa2\x30\xdc\x70\xd4\xb1\x6f\xee\x0b\xdc\x17\xa3\x8d\x2a\x13\x03\x3b\xdf\x4b\xac\x0b\x9c\xfd\x1d\xba\xce\x6b\xf3\x8c\x63\x9e\x6a\x02\x79\x46\x98\x15\x0a\x53\x9e\x30\x83\x1a\xae\xae\xdb\x97\xb8\xbf\xaf\xef\xb4\xfe\xeb\x1a\x15\x02\x4b\x53\x0d\x0c\x04\xde\x42\x3b\xdb\xaa\xdc\x33\x21\xf6\xb3\x52\x24\x10\xf6\xf1\xab\x2a\x38\x19\x2a\x1c\x39\x89\x61\xa1\x21\x8e\xe3\xf1\xad\xa3\xfd\x45\x64\xde\x50\x6c\xdc\xb3\x60\x01\xac\x28\x50\xa4\xe1\x83\x53\xa6\x50\xe8\x38\x8e\x23\xdf\x53\x68\x4a\x25\x60\xe0\x63\x67\xeb\x6e\x07\xb7\xdc\xac\x01\xef\x0c\x45\xcf\x04\x82\x77\x6e\xff\x60\xe0\x78\x6f\x10\xbb\x1a\x8d\xa1\x19\x71\x1d\x13\x75\xdc\x7d\x9f\xb0\xda\x55\x98\xae\x50\x1f\x8a\x9c\xcf\xe1\x92\x6d\x11\xf0\x0e\x93\x92\xcc\x26\xe8\xbf\x95\xa8\xee\x81\x89\x14\x9c\x61\xee\xab\x28\x37\x4b\x54\x94\xd6\x4a\xde\xea\xf9\x16\x95\xe1\x09\x6a\xd8\x30\x93\xac\x31\x85\xe5\xbd\xcb\x77\x59\xa0\xb2\x31\x3a\xe6\x3a\x18\xf3\x1d\x69\x10\x26\xe6\x0e\x12\x29\x0c\xde\x19\xca\x7b\xfa\x1f\x41\xc8\x85\x99\x02\x2a\x25\x55\x54\xbb\x6b\x0f\x81\xcf\xb5\xe0\xa0\x9f\x26\x75\xc1\x08\x5c\x3d\x09\xfe\x86\x4a\xfe\xcc\xf2\x12\x03\x38\x75\x91\x3a\x0a\x91\x66\x5b\xac\x11\x6a\xd3\xdd\xce\xde\x32\x45\xa5\xc3\x43\xa5\x9c\x2e\xbe\xe7\xb1\x2c\xc3\xc4\x60\x0a\x5c\x18\xdf\x8b\x7c\x8f\x67\x90\xa3\xd8\x37\x36\x5e\x4b\x79\xa3\x23\x58\x2c\xe0\x94\x0c\x68\xd7\x59\xab\x60\xb1\x1f\x33\x2e\x62\x2f\x8d\x54\xae\xe0\x35\xd0\x44\xbe\x57\x01\xe6\x1a\xad\x10\x52\x68\x53\x1a\xf8\x33\x55\x03\x49\x62\xec\x13\x7e\x2c\x45\x12\x12\xe8\x63\x68\x4e\x61\xe3\xa6\x71\x29\x22\x08\x2d\x20\x7d\x6c\x3d\xaf\x29\x2e\x53\x90\x37\x54\x7e\x36\x71\x68\x7d\x15\x37\xcb\x9a\x4c\xa2\xc9\x3c\x83\x17\xf2\xc6\x2d\x6c\x12\x40\xf0\x7c\x0a\xd9\xc6\xc4\xe7\x24\x35\x0b\x83\x52\xe0\x5d\xe1\x70\x6a\xeb\x9a\xad\x37\x2f\xbf\x04\x53\xd8\x58\x41\xe4\x0e\x6f\x50\xf9\xaa\x0a\x16\xed\x7c\x1a\xfd\x7e\xd0\x3a\xa3\xe2\x54\x0a\x84\x05\x18\x55\xa2\xdf\xa9\x3c\x10\xed\x7b\x9e\x35\x8e\x6a\x10\x27\x04\x1e\xf1\xe8\x0c\x5e\xbf\x05\x0e\xff\xbf\x80\xd3\xb7\xc0\x67\xb3\x16\xc2\x11\xfd\xec\x92\x2b\x7e\x1d\x6e\x4a\x43\xf2\xc9\x64\x9e\xc1\x57\x67\xcf\x99\x35\xd6\x81\x6c\xf5\x9e\xc2\x1e\x1c\xd1\x5b\x3b\xf1\xc5\x82\x10\x76\x1b\xd5\xea\x9f\xb6\x7a\xfb\xf4\x37\x6a\x54\x97\xe6\xbf\xb8\x6e\x7f\x83\xf6\x6d\x0a\xcb\xd2\x40\xc1\x04\x4f\x34\xf0\x0c\x98\x70\xd1\x00\x32\x49\x4a\xa5\x9f\x94\xbe\xbf\x8c\xe7\x2f\xb5\xaf\x9d\xbf\xe7\xbf\xb3\x43\x80\x7a\x1e\xe3\xd9\xbe\xad\x56\xc3\x10\x95\x8a\xc6\x6c\xac\xcd\x3b\xbf\xc3\x64\xa4\x8a\x1d\x6d\x04\xad\x1f\xb7\xc1\x61\xb2\xf3\xbd\xaf\xc7\xa8\x5f\x6b\xd7\xe1\x4e\x82\x3b\xdc\xe9\xed\xb9\x70\xb7\x92\xc7\x75\xde\xb5\x38\x8e\x68\xdb\x98\x7a\x18\x55\x43\xa4\x8f\xec\x38\x7b\xd5\xb6\x6e\x40\x13\xb3\x29\xf2\x96\xc3\x64\x10\xa4\x9c\xe5\x98\x98\xf9\x4b\x3d\x6f\x38\x5f\x3f\x67\xed\xa2\xbb\xb6\x26\xbb\xe5\x23\x0d\x70\x22\x05\xee\x13\xaf\x0c\x82\x97\xfa\x47\x81\xc1\x01\x99\x6a\xcd\xee\x13\xae\x9e\x84\x7d\xce\x75\x34\xe5\x1a\xc8\x78\x94\x75\x31\xd0\x5c\xac\x72\x1c\xa1\x5f\xf7\x3d\xf2\x35\x14\xf8\x64\xfe\xf5\xdb\x6c\x63\x68\xf5\x71\x84\xe3\xbb\x05\x3e\x1b\xe9\x70\x82\xd2\x16\xaf\x47\x52\x63\x88\xe0\xa3\xac\xe2\xa4\xef\x8b\x67\xe5\x17\x81\xe0\x79\xf0\x5c\x1c\x43\xd0\xf9\x6c\xa0\xeb\x53\x98\x06\xad\xfe\x1f\xcb\x78\x02\xcb\xf8\x3e\xc0\x7e\x93\x61\xb4\x62\x7f\x7f\xec\xc2\x22\x3d\xc2\x2f\x3a\x93\xfe\x1d\xdc\x62\x90\xc8\x8f\xd2\x8b\x41\x6e\x34\xc7\xb9\xf8\x73\x27\xf0\x39\x09\xc7\xbe\xec\xc7\x89\x07\x48\x77\x29\xf2\xd4\xc2\xf5\xbb\x61\x22\x23\x5a\xff\x17\xc9\x48\x4f\x9b\xff\x2c\x1f\xe9\x1e\xe7\x27\xa0\xd7\x4c\x61\xda\x74\x6f\xd7\x9d\x61\x89\xe6\x16\xd1\x45\x83\xb9\x95\x75\x4b\x53\x1a\xec\x5d\xd8\xc1\x55\x58\xd3\xd4\x49\x05\x9b\xd9\x70\x75\xfd\x47\x29\x6f\xfc\xb6\xce\xc0\x68\xb9\x7c\x48\x19\xdb\x83\x41\xe1\x46\x6e\x59\xfe\x64\x65\xea\x0e\x5e\xf3\xa4\x3e\xf1\x72\x57\x5d\xf1\x65\x22\x0b\x8c\xdf\x3d\x40\xbb\x9e\xeb\xa2\x6b\xb7\x6b\x2e\xed\xbe\x4e\x61\x82\xee\xd6\xee\xdc\x5a\x56\xbb\x8a\x67\x30\xc1\xf8\x27\xc1\xbf\x95\xce\x7d\xd6\xe9\x36\x7e\x5b\xf9\xc1\xfb\x1c\x19\x45\x0b\xc6\x97\xd6\x45\x1f\x09\x6a\x37\xbb\xe6\x75\x76\x41\x55\x41\x42\x33\x5d\x3a\xd3\x67\xec\x88\x5b\xba\x42\x30\xb2\xfe\xfa\xe5\xbe\x68\x87\x62\x2a\xed\xc7\x31\xf7\xde\x4e\xe1\xe8\xb5\xd4\x41\xab\x8a\x07\x4b\x7a\x25\x7a\xff\xce\xc9\x56\x6a\x0a\x05\xea\xe2\x2d\x0e\x85\x6d\x37\xf2\x16\x15\x84\x2d\x65\x8e\x5f\xeb\x60\x60\x44\xd4\x2c\x98\x9f\x10\x9e\xf6\xd2\x87\x6c\x93\xee\xb9\x60\x8a\x6d\xd0\xa0\xa2\x14\xcf\x72\x9e\x18\xed\x12\xd2\x5e\xfe\x36\x3a\xd8\x15\x36\x9a\xbc\xda\x2f\xf8\x8d\x14\x18\x20\xe2\x74\x5a\x40\xb0\x0d\xea\xd7\x3a\x74\x9d\xba\x3c\xd5\x1f\x87\x9e\xfb\x4c\xf1\x8b\x01\x84\x44\xa6\xcb\x9c\xa9\xd6\x27\xff\xac\x43\x31\x82\xe0\xe2\x83\x0b\xd5\xd6\x9b\x8d\x9c\xaa\x72\x09\x80\x4f\xf3\x28\x2c\xef\x81\xa7\xfa\x89\x8e\xed\x36\x0d\x79\x6a\xef\x23\x7b\x92\x2f\x3e\xd8\xff\x0f\x5d\x47\x8e\xfb\x7d\x28\xd1\x5d\x39\x3e\x1e\x00\x63\xc1\xdf\x40\x78\x44\xf4\x37\x60\x1d\x02\xa5\x9f\x35\xf6\x5d\x18\x54\x15\x81\x74\x72\x28\xf5\x01\x88\x08\x55\x62\x35\xec\x06\xc3\xab\xeb\x51\x70\xa7\x2d\xb7\x22\xf1\x51\xd4\x20\x6b\x69\x57\xc0\x29\x4a\xba\xd8\xe4\x6e\x96\x1b\x5f\x40\xf0\xf7\x7a\xb8\xe5\xe6\x8e\xb2\xb9\xf1\xaa\xb2\x45\xcd\x16\xa3\x56\x7d\x47\x4f\x79\xaa\xaf\x9a\x49\xd7\x35\x4f\xa3\xe1\xee\x63\x7c\xf1\xa1\xe5\xa2\xe3\xee\x7b\xd8\xdf\x75\x5a\xbb\x34\x19\x7b\x1a\x54\xfd\xb6\x71\x35\xd7\xe9\x74\xf0\x80\x0d\x9a\xb5\x4c\x9b\x7c\x7e\xd3\x1c\x58\x1f\xac\xfe\xee\xb4\x62\x87\x66\xed\x6f\x33\x75\xc9\x6f\x7e\x94\x99\x35\xc3\xff\x40\x25\x7b\xe3\xed\xa1\xa8\x5d\xdf\xef\x0a\xf5\xa4\x96\x4e\xb5\x52\x8e\xed\x0a\x33\x67\xf1\xac\xdf\x17\x32\xd7\x17\x3e\xba\xbe\x3b\x6b\xce\x58\xd4\x1a\xb2\xd8\xfd\x16\xf3\x01\x33\x56\xe6\xa6\xf6\xab\x63\xc9\xee\x18\x32\x5a\x70\xdb\x26\xfb\x07\x34\xb6\xf2\xbe\x75\xc7\x91\x5d\x2d\xf4\xc7\x82\x06\x59\x4e\x41\xf0\xea\x15\xbc\x18\x17\x32\x4c\x37\xdb\x84\x30\x0d\xa3\xae\xec\xb9\x00\xda\x36\x6a\xf4\x7e\xf0\xaa\x25\x0c\x94\xaf\xb3\xa3\x55\xe2\x42\x7f\xe1\xf6\x4b\x18\xf5\x0b\xe9\x41\x29\xb9\x44\x33\xa6\x4f\xb8\x1d\x86\x57\x8d\x9b\x2b\xed\x74\x1e\x0f\xa5\xa2\x55\x3f\xb3\x9c\xa7\x74\x10\xd4\x6e\xd3\x73\x51\x6e\x22\x08\x85\x34\xf6\x7d\x43\x5b\x2d\x73\x8c\x3a\x6c\xb7\x4f\xc5\xb6\x39\xe9\xd9\x48\x58\x32\xcd\x6d\xfd\x9a\x64\xf1\x3b\x7a\xb6\xb9\xed\x3a\x46\x7d\x34\xec\x71\xca\x43\xcc\x5a\x7d\x9b\x4a\xe3\x04\x8e\x9e\x77\xfa\xd9\x68\xe3\x98\x4a\xc8\xab\x5a\x02\x97\xc2\x9e\x34\x77\x04\xfc\x19\x04\x4e\x7c\xed\x85\xc0\x52\xf1\xb3\xc1\x79\x74\xb7\x6b\xa8\xe7\x19\x6c\x5b\x2d\x32\xc6\x73\x4c\x6d\x42\x5a\x8a\x07\xbf\x0e\x25\xfd\x1a\x9c\xc1\xcb\x5b\x27\x2f\xaa\x9a\x3a\x31\xf4\xcb\xe0\x71\x76\x04\x27\x22\xff\x75\xbc\xc8\x39\x0b\xdb\xb0\x8d\x8e\xcc\x83\xfd\x8e\x71\xf1\x81\xbc\x75\xcc\xcc\x2e\xd8\x29\x3d\x1a\xff\x8e\xa1\x6d\x0f\x1e\x3a\xfe\x84\xb7\x43\x00\x2d\x13\x73\x17\x69\xa5\xb3\xc2\x36\x6c\x07\x1e\x76\xe0\x05\x87\x51\x7c\xf8\x58\x55\xfe\xbf\x02\x00\x00\xff\xff\x0e\x45\x5f\x83\x40\x1f\x00\x00") func templateBuilderUpdateTmplBytes() ([]byte, error) { return bindataRead( @@ -261,7 +261,7 @@ func templateBuilderUpdateTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/update.tmpl", size: 7952, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/update.tmpl", size: 8000, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -966,7 +966,7 @@ func templateImportTmpl() (*asset, error) { return a, nil } -var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x57\xcd\x6e\xdb\x38\x10\x3e\x4b\x4f\x31\x10\x5c\xc0\x0e\x12\xb9\xed\x6d\x03\xe4\xd0\x4d\x52\x34\xd8\xa2\x28\x90\xa4\x97\xc5\xa2\xa0\xc5\x91\x4d\x94\x22\x5d\x92\x4a\x9a\x15\xf4\xee\x0b\x0e\x49\xfd\x24\xf6\xee\xb6\x17\xc3\x24\x67\xbe\xf9\xe1\xcc\xc7\x51\xd7\xad\x4f\xf2\x4b\xbd\x7f\x32\x62\xbb\x73\xf0\xf6\xf5\x9b\xdf\xce\xf6\x06\x2d\x2a\x07\xef\x59\x85\x1b\xad\xbf\xc1\x8d\xaa\x4a\x78\x27\x25\x90\x90\x05\x7f\x6e\x1e\x90\x97\xf9\xdd\x4e\x58\xb0\xba\x35\x15\x42\xa5\x39\x82\xb0\x20\x45\x85\xca\x22\x87\x56\x71\x34\xe0\x76\x08\xef\xf6\xac\xda\x21\xbc\x2d\x5f\xa7\x53\xa8\x75\xab\x78\x2e\x14\x9d\x7f\xbc\xb9\xbc\xfe\x74\x7b\x0d\xb5\x90\x08\x71\xcf\x68\xed\x80\x0b\x83\x95\xd3\xe6\x09\x74\x0d\x6e\x62\xcc\x19\xc4\x32\x3f\x59\xf7\x7d\x9e\x77\x1d\x70\xac\x85\x42\x28\x1a\x74\xac\x80\xb0\x79\x06\x8f\xc2\xed\x00\x7f\x38\x54\x1c\x16\x50\x7c\x66\xd5\x37\xb6\xc5\x02\x16\x65\xfc\x0b\x67\x7d\x9f\x67\x5d\x07\x0e\x9b\xbd\x64\x0e\xa1\xd8\x21\xe3\x68\x0a\x28\x3d\x4a\xd7\x81\xd7\x8d\x46\x46\x21\xd1\xec\xb5\x71\x05\x2c\xe8\xa8\xd2\xca\x3a\x58\xe6\xd9\x7a\x0d\x1f\xd9\x06\x25\xec\xb4\xe4\x96\xa2\xb0\xce\x08\xb5\x05\x49\xdb\x1c\x95\x76\x7e\xe9\x4f\xba\x0e\xa4\x7e\x44\x03\x8b\xf2\x13\x6b\x10\xfa\x1e\xdc\xd3\x7e\x08\x9f\x33\xc7\x36\xcc\x62\x99\x67\x01\xf3\x02\x8a\xae\x83\x45\x19\x56\x7d\x5f\x90\x3d\xda\xba\xb9\x2a\x2f\xbd\x0f\x4c\x39\x0f\xf3\xc2\xfa\xcc\xae\xe0\x50\x0b\x94\xfc\x80\xa1\x43\x60\xc9\xec\xcd\x55\x79\xeb\xb4\x61\x5b\xfc\x03\x9f\x82\x79\x9f\x62\xc3\xd4\x16\x61\x51\xc3\xf9\x05\x2c\xca\xf7\x1e\xd8\xfa\xa4\x64\x74\xba\x08\x96\xfc\x59\x3d\x45\xcd\xb3\xe4\x7b\x10\xf8\x4f\xa7\xc7\x64\xd5\x43\xb6\x8e\x45\x91\xcd\x70\xa3\xff\xf5\x41\xef\xd3\xe5\x7a\x95\x18\x09\x86\x48\xae\xf9\x16\xa7\x81\x20\xdf\x86\x13\x3c\x1c\x07\x9d\xff\x44\x18\x38\x84\x41\x9a\xca\x2f\x84\x82\xa6\x75\xcc\x09\xad\x6c\x8a\x23\xe1\xc6\x30\x06\xb5\x03\x01\x2c\x5c\xb3\x97\xde\xc7\xbd\x11\xca\xd5\x50\x70\xc1\x24\x56\x6e\xfd\xca\xae\x7d\x5f\xac\xab\xe8\xb8\xf5\x1d\x10\xd3\x01\xb1\x01\x7e\x0c\xc5\x1d\x60\xa8\xb2\x57\x54\xf6\x61\xe3\x38\xec\x03\x33\x82\x6d\x24\x3e\x87\xed\x3a\x10\x35\xec\x98\xbd\x9b\x43\xff\x9b\xc5\x79\xc3\x89\x1a\xb4\xef\x8f\x0f\xcc\x5e\x61\xcd\x5a\xe9\xc2\xe2\x0b\x93\x82\x33\xa7\x8d\xf5\xcd\xd3\x36\x1f\xb4\xfe\x66\xc3\xd1\x67\x2d\x45\xe5\x6f\x38\x07\x00\xa0\xab\x53\x49\x80\x2e\x76\x10\x9f\x88\x88\xfa\x90\xf2\x4b\x80\x0b\x60\x9c\x4f\xd6\x6f\xa6\x20\xd1\xef\x2c\x01\xaa\x89\x21\x2a\x93\x4f\xda\x21\xb8\x1d\x73\x54\x0a\x43\xd6\x60\x83\x52\x3f\x02\x33\xbe\x00\x84\x13\x4c\x8a\xbf\x91\xc3\xe6\x29\xb0\x60\xab\x9c\x68\x30\x20\xec\x23\x6b\xe9\x50\xf3\x83\x38\x95\x4c\x60\x48\x04\xb6\xdf\x4b\x51\xd1\x56\x09\x77\x3b\x34\x58\x6b\x83\xa7\x01\x41\x38\xb0\x3b\xdd\x4a\x0e\x1b\x84\xc0\x62\x38\xf4\x50\xc3\x84\x02\x66\xa1\xd6\x52\xea\x47\x7b\x4e\x2a\xf4\x93\x05\x51\xf8\x1a\xc9\xe0\x52\xab\x5a\x6c\x07\x16\xed\xfb\x75\xf4\xb3\x88\x3a\xd3\x84\x3c\x30\xe3\xc9\xf1\x48\x62\xb2\xf0\xff\x4f\x8f\x3b\x39\xf9\x0b\x95\x2b\xfd\x22\x2a\x26\xb0\xec\xf0\x7d\x65\x59\x16\x17\x5e\x2f\xfc\x3d\xa4\x19\x78\xc1\x3e\x63\xab\x50\x6a\xc4\x71\xf7\x16\xcd\x15\x3d\x26\x3c\x1c\x24\x8d\x0b\x9f\x58\x7a\x48\xe2\x86\x17\x0f\x22\x33\x0b\x33\x42\xac\x27\x7c\x98\x3c\x67\x84\x51\xa6\x82\x5e\x2a\xed\xfc\xfa\xc6\x5e\xab\xb6\x59\x45\xd9\xe0\x2c\x8f\x32\x81\x3f\xa3\x46\x24\x00\x92\x8a\xe4\x93\xe4\x66\xfc\x93\x36\x1f\x98\x6c\xa9\x64\x2a\x83\xa1\x50\x6a\x6d\x12\x1b\x3d\xa7\xd3\x32\x1a\x9f\x61\x8e\x9d\xe8\xdd\xbc\x13\x0d\x86\x7f\xf7\xf7\x94\x81\xba\x55\xd5\x72\x05\x43\x22\x02\xec\x9d\x7f\xcb\xc6\xc0\x87\x1c\x0d\x17\x58\x97\xf7\x7b\xce\x1c\x5e\x0d\x86\x8e\x05\x3e\x93\xfb\xe5\xf0\x5b\x42\xf9\xc5\xe0\xc7\xc8\x7f\x29\x5e\x1a\x44\x16\x75\x39\x21\xae\x69\xb8\xc4\xfe\x21\xd6\x41\x62\x26\x40\x83\xc1\xf9\x05\x0c\x1c\xec\x7d\x80\xe5\x2b\xbb\x02\x34\x46\x9b\xe2\x99\x07\x29\x33\x2a\x86\x27\x2c\x30\x9f\x89\x08\x9d\x72\x50\xcc\x92\x50\xc4\x2c\xc0\x8d\xf3\x0a\x15\x93\x72\xe4\xa1\x4d\x2b\x24\x47\xe3\xd9\xca\xd3\x09\x58\xf6\x80\x63\xbe\x92\x1d\x7a\x2d\x8e\x24\x62\xba\x58\xcd\x89\x7e\x7d\x92\x06\xb8\xaa\xb5\x4e\x37\x61\x10\xf2\x5e\xa2\x6a\x1b\x88\x5d\x44\xc3\xde\xf8\x50\xcf\x47\x8e\x34\xc8\xa5\xbb\xf2\xcd\x94\xec\xae\x4f\x40\x37\x22\xd0\x6e\xa2\x50\xf2\xb8\x36\xde\xd6\x0e\xc9\x5e\x19\x0c\xc4\x67\xd7\xab\x9f\x5f\x80\x33\xa2\x49\x2c\x17\x53\x5c\xde\x86\x87\x7d\x31\xa1\xbf\xc9\x1c\x10\xec\xc6\x78\xec\x80\x7e\xa4\xee\xc6\xf8\x7c\x32\x49\x70\x8a\x12\x66\x88\x3c\x9f\x76\xcd\xbc\x5f\xfc\xfe\xfa\x04\xa0\x16\x8a\x13\x3e\xa9\xd2\x2b\x73\xa4\x17\x7c\x9c\x21\x5d\x33\xc2\xfa\x7a\x9a\x66\x9f\xba\xf4\xc9\x9b\x55\xa8\xa8\x01\xbf\xfb\xf3\xd1\xfe\x17\xea\xab\x28\xf3\xa2\x8c\x3d\x02\xc5\xb8\x18\x65\x5e\xd6\xe4\xd4\xb7\x49\xd8\xa1\xae\xb2\x30\x56\x87\x7c\xcd\x9b\x1f\x2e\xa6\x48\x83\x97\xf3\x9e\x3b\x54\x78\x2f\xef\x89\x52\x42\xd3\xd6\x30\xc5\xff\xdf\xb4\xbc\x8c\x73\x86\x9c\x26\xb6\x30\xac\x05\xd0\xd1\xa9\x95\xf7\x25\x74\xb1\x9d\xaa\xad\x20\x94\xd7\x72\x95\x06\xc8\xce\x2b\x1b\x74\xad\x51\x71\x6b\x69\x57\x79\x96\xf5\x79\x3e\x69\xbe\xe7\xec\x71\x36\x94\x32\x33\x5b\x7f\x6a\xb0\x42\xf1\x10\x26\xe8\xdf\x43\x33\xbf\x8f\x33\x72\xfe\x53\x7c\xe1\xf1\x06\xb2\x08\xe5\x16\x93\xf8\x53\xc4\x41\xb1\x4f\x6c\x2e\x47\xec\x79\x3e\x88\xe0\x42\x16\xec\xa3\x70\xd5\x0e\xa6\x92\x74\x17\x15\xb3\xd4\x37\xf1\xce\xc4\x81\x3b\x0b\xd4\xa0\xfc\x29\xbc\x86\xbe\x3f\x7d\x46\xdf\xb7\xce\xb4\x95\x4b\x19\xe9\x3a\xd8\x33\x5b\x31\x19\xee\x6f\x90\x3d\x0f\x95\x19\x6f\x43\x09\x49\xeb\x58\xc2\xf3\xc3\xba\x71\xe5\xb5\x77\xbd\x5e\x86\x99\x69\x64\x8b\x73\x10\x8a\x92\x3b\xc9\x1e\xe5\xf8\xc0\x9b\x74\x0e\xaf\xbe\x17\xa7\x93\x90\xfd\xd5\x67\x3d\xdd\x7f\x36\x92\xe8\xb1\x0f\x55\x1a\xd0\x19\xe7\xc2\x3f\xfc\x4c\xa6\x2f\xd6\xe7\xec\xfb\x6e\x54\x21\xea\xa8\x98\xf2\x03\xa2\x7e\x40\x63\x04\x0f\x13\xa2\x36\xf4\x35\xaf\x69\x06\x1e\x21\xc3\x67\x7f\xaa\x10\x62\xb0\xc8\xb1\xe5\xc0\xd8\xd3\xaf\xf3\x99\x37\xd3\xf1\xe9\x9f\x00\x00\x00\xff\xff\x14\xc8\x51\xcc\x8a\x10\x00\x00") +var _templateMetaTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x57\xcd\x6e\xdb\x38\x10\x3e\x4b\x4f\x31\x10\x5c\xc0\x0e\x12\xb9\xed\x6d\x03\xe4\xd0\x4d\x52\x34\xd8\xa2\x28\x90\xa4\x97\xc5\xa2\xa0\xc5\xa1\x4d\x94\x22\x5d\x92\x4a\x9a\x15\xf4\xee\x0b\xfe\x49\x54\x62\xef\x6e\x7b\x31\x4c\x72\xe6\x9b\x1f\xce\x7c\x1c\xf5\xfd\xfa\xa4\xbc\x54\xfb\x27\xcd\xb7\x3b\x0b\x6f\x5f\xbf\xf9\xed\x6c\xaf\xd1\xa0\xb4\xf0\x9e\x34\xb8\x51\xea\x1b\xdc\xc8\xa6\x86\x77\x42\x80\x17\x32\xe0\xce\xf5\x03\xd2\xba\xbc\xdb\x71\x03\x46\x75\xba\x41\x68\x14\x45\xe0\x06\x04\x6f\x50\x1a\xa4\xd0\x49\x8a\x1a\xec\x0e\xe1\xdd\x9e\x34\x3b\x84\xb7\xf5\xeb\x74\x0a\x4c\x75\x92\x96\x5c\xfa\xf3\x8f\x37\x97\xd7\x9f\x6e\xaf\x81\x71\x81\x10\xf7\xb4\x52\x16\x28\xd7\xd8\x58\xa5\x9f\x40\x31\xb0\x99\x31\xab\x11\xeb\xf2\x64\x3d\x0c\x65\xd9\xf7\x40\x91\x71\x89\x50\xb5\x68\x49\x05\x61\xf3\x0c\x1e\xb9\xdd\x01\xfe\xb0\x28\x29\x2c\xa0\xfa\x4c\x9a\x6f\x64\x8b\x15\x2c\xea\xf8\x17\xce\x86\xa1\x2c\xfa\x1e\x2c\xb6\x7b\x41\x2c\x42\xb5\x43\x42\x51\x57\x50\x3b\x94\xbe\x07\xa7\x1b\x8d\x4c\x42\xbc\xdd\x2b\x6d\x2b\x58\xf8\xa3\x46\x49\x63\x61\x59\x16\xeb\x35\x7c\x24\x1b\x14\xb0\x53\x82\x1a\x1f\x85\xb1\x9a\xcb\x2d\x08\xbf\x4d\x51\x2a\xeb\x96\xee\xa4\xef\x41\xa8\x47\xd4\xb0\xa8\x3f\x91\x16\x61\x18\xc0\x3e\xed\xc7\xf0\x29\xb1\x64\x43\x0c\xd6\x65\x11\x30\x2f\xa0\xea\x7b\x58\xd4\x61\x35\x0c\x95\xb7\xe7\xb7\x6e\xae\xea\x4b\xe7\x03\x91\xd6\xc1\xbc\xb0\x3e\xb3\xcb\x29\x30\x8e\x82\x1e\x30\x74\x08\x2c\x99\xbd\xb9\xaa\x6f\xad\xd2\x64\x8b\x7f\xe0\x53\x30\xef\x52\xac\x89\xdc\x22\x2c\x18\x9c\x5f\xc0\xa2\x7e\xef\x80\x8d\x4b\x4a\xe1\x4f\x17\xc1\x92\x3b\x63\x39\x6a\x59\x24\xdf\x83\xc0\x7f\x3a\x3d\x25\x8b\x8d\xd9\x3a\x16\x45\x31\xc3\x8d\xfe\xb3\x83\xde\xa7\xcb\x75\x2a\x31\x12\x0c\x91\x5c\xd3\x2d\xe6\x81\x20\xdd\x86\x13\x3c\x1c\x87\x3f\xff\x89\x30\x70\x0c\xc3\x6b\x4a\xb7\xe0\x12\xda\xce\x12\xcb\x95\x34\x29\x8e\x84\x1b\xc3\x18\xd5\x0e\x04\xb0\xb0\xed\x5e\x38\x1f\xf7\x9a\x4b\xcb\xa0\xa2\x9c\x08\x6c\xec\xfa\x95\x59\xbb\xbe\x58\x37\xd1\x71\xe3\x3a\x20\xa6\x03\x62\x03\xfc\x18\x8b\x3b\xc0\xf8\xca\x5e\xf9\xb2\x0f\x1b\xc7\x61\x1f\x88\xe6\x64\x23\xf0\x39\x6c\xdf\x03\x67\xb0\x23\xe6\x6e\x0e\xfd\x6f\x16\xe7\x0d\xc7\x19\x28\xd7\x1f\x1f\x88\xb9\x42\x46\x3a\x61\xc3\xe2\x0b\x11\x9c\x12\xab\xb4\x71\xcd\xd3\xb5\x1f\x94\xfa\x66\xc2\xd1\x67\x25\x78\xe3\x6e\xb8\x04\x00\xf0\x57\x27\x93\x80\xbf\xd8\x51\x3c\x13\xe1\xec\x90\xf2\x4b\x80\x0b\x20\x94\x66\xeb\x37\x39\x48\xf4\xbb\x48\x80\x32\x33\xe4\xcb\xe4\x93\xb2\x08\x76\x47\xac\x2f\x85\x31\x6b\xb0\x41\xa1\x1e\x81\x68\x57\x00\xdc\x72\x22\xf8\xdf\x48\x61\xf3\x14\x58\xb0\x93\x96\xb7\x18\x10\xf6\x91\xb5\x54\xa8\xf9\x51\xdc\x97\x4c\x60\x48\x04\xb2\xdf\x0b\xde\xf8\xad\x1a\xee\x76\xa8\x91\x29\x8d\xa7\x01\x81\x5b\x30\x3b\xd5\x09\x0a\x1b\x84\xc0\x62\x38\xf6\x50\x4b\xb8\x04\x62\x80\x29\x21\xd4\xa3\x39\xf7\x2a\xfe\xa7\x08\xa2\xf0\x35\x92\xc1\xa5\x92\x8c\x6f\x47\x16\x1d\x86\x75\xf4\xb3\x8a\x3a\x79\x42\x1e\x88\x76\xe4\x78\x24\x31\x45\xf8\xff\xa7\xc3\xcd\x4e\xfe\x42\x69\x6b\xb7\x88\x8a\x09\xac\x38\x7c\x5f\x45\x51\xc4\x85\xd3\x0b\x7f\x0f\x69\x06\x5e\x30\xcf\xd8\x2a\x94\x9a\xe7\xb8\x7b\x83\xfa\xca\x3f\x26\x34\x1c\x24\x8d\x0b\x97\x58\xff\x90\xc4\x0d\x27\x1e\x44\x66\x16\x66\x84\xc8\x32\x3e\x4c\x9e\x13\x8f\x51\xa7\x82\x5e\x4a\x65\xdd\xfa\xc6\x5c\xcb\xae\x5d\x45\xd9\xe0\x2c\x8d\x32\x81\x3f\xa3\x46\x24\x00\x2f\x15\xc9\x27\xc9\xcd\xf8\x27\x6d\x3e\x10\xd1\xf9\x92\x69\x34\x86\x42\x61\x4a\x27\x36\x7a\x4e\xa7\x75\x34\x3e\xc3\x9c\x3a\xd1\xb9\x79\xc7\x5b\x0c\xff\xee\xef\x7d\x06\x58\x27\x9b\xe5\x0a\xc6\x44\x04\xd8\x3b\xf7\x96\x4d\x81\x8f\x39\x1a\x2f\x90\xd5\xf7\x7b\x4a\x2c\x5e\x8d\x86\x8e\x05\x3e\x93\xfb\xe5\xf0\x3b\x8f\xf2\x8b\xc1\x4f\x91\xff\x52\xbc\x7e\x10\x59\xb0\x3a\x23\xae\x3c\x5c\xcf\xfe\x21\xd6\x51\x62\x26\xe0\x07\x83\xf3\x0b\x18\x39\xd8\xf9\x00\xcb\x57\x66\x05\xa8\xb5\xd2\x55\xf2\x20\x77\x23\xa5\x47\xc6\x18\xb9\x01\xe2\xd2\x11\xf1\x53\x22\xaa\x59\x26\xaa\x98\x0a\xb8\xb1\x4e\xa1\x21\x42\x4c\x64\xb4\xe9\xb8\xa0\xa8\x1d\x65\x39\x4e\x01\x43\x1e\x70\x4a\x5a\xb2\xe3\x9f\x8c\x23\xd9\xc8\x17\xab\x39\xdb\xaf\x4f\xd2\x14\xd7\x74\xc6\xaa\x36\x4c\x43\xce\x4b\x94\x5d\x0b\xb1\x95\xfc\xc4\x37\xbd\xd6\xf3\xb9\x23\x4d\x73\xe9\xc2\x5c\x47\x25\xbb\xeb\x13\x50\x2d\x0f\xdc\x9b\x78\xd4\x7b\xcc\xb4\xb3\xb5\x43\x6f\xaf\x0e\x06\xe2\xdb\xeb\xd4\xcf\x2f\xc0\x6a\xde\x26\xaa\x4b\x79\xbe\x0d\xaf\xfb\x22\xe3\xc0\x6c\x18\x08\x76\x63\x3c\x66\x44\x3f\x52\x7c\x53\x7c\x2e\x99\x5e\x30\x47\x09\x83\x44\x59\xe6\xad\x33\x6f\x1a\xb7\xbf\x3e\x01\x60\x5c\x52\x8f\xef\x55\xfd\x53\x73\xa4\x21\x5c\x9c\x21\x5d\x33\xd6\xfa\x7a\x9a\x06\x20\x56\xbb\xe4\xcd\xca\x94\x33\xc0\xef\xee\x7c\xb2\xff\xc5\x37\x57\x94\x79\x51\xcb\x0e\xc1\xc7\xb8\x98\x64\x5e\xd6\x64\xee\x5b\x16\x76\xa8\xab\x22\xcc\xd6\x21\x5f\x73\x06\x80\x8b\x1c\x69\xf4\x72\xde\x78\x87\x0a\xef\xe5\x3d\xf9\x94\xf8\x91\x6b\x1c\xe5\xff\x6f\x5a\x5e\xc6\x39\x43\x4e\x63\x5b\x98\xd8\x02\xe8\xe4\xd4\xca\xf9\x12\x5a\xd9\xe4\x6a\x2b\x08\xe5\xb5\x5c\xa5\x29\xb2\x77\xca\x1a\x6d\xa7\x65\xdc\x5a\x9a\x55\x59\x14\x43\x59\x66\xcd\xf7\x9c\x42\xce\xc6\x52\x26\x7a\xeb\x4e\x35\x36\xc8\x1f\xc2\x18\xfd\x7b\x68\xe6\xf7\x71\x50\x2e\x7f\x8a\x2f\x1c\xde\x48\x16\xa1\xdc\x62\x12\x7f\x8a\x38\x7c\xec\x99\xcd\xe5\x84\x3d\xcf\x87\x67\xb9\x90\x05\xf3\xc8\x6d\xb3\x83\x5c\xd2\xdf\x45\x43\x8c\xef\x9b\x78\x67\xfc\xc0\x9d\x05\x6a\x90\xee\x14\x5e\xc3\x30\x9c\x3e\xe3\xf0\x5b\xab\xbb\xc6\xa6\x8c\xf4\x3d\xec\x89\x69\x88\x08\xf7\x37\xca\x9e\x87\xca\x8c\xb7\x21\xb9\xf0\xeb\x58\xc2\xf3\x43\xd6\xda\xfa\xda\xb9\xce\x96\x61\x70\x9a\xd8\xe2\x1c\xb8\xf4\xc9\xcd\xb2\xe7\x73\x7c\xe0\x61\x3a\x87\x57\xdf\xab\xd3\x2c\x64\x77\xf5\xc5\xe0\xef\xbf\x98\x48\xf4\xd8\xd7\xaa\x9f\xd2\x09\xa5\xdc\xbd\xfe\x44\xa4\xcf\xd6\xe7\xec\xfb\x6e\x52\xf1\xd4\xd1\x10\xe9\xa6\x44\xf5\x80\x5a\x73\x1a\xc6\x44\xa5\xfd\x27\xbd\xf2\x83\xf0\x04\x19\xbe\xfd\x53\x85\x78\x06\x8b\x1c\x5b\x8f\x8c\x9d\x7f\xa2\xcf\xbc\xc9\x67\xa8\x7f\x02\x00\x00\xff\xff\x34\x1b\x77\xea\x8f\x10\x00\x00") func templateMetaTmplBytes() ([]byte, error) { return bindataRead( @@ -981,7 +981,7 @@ func templateMetaTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/meta.tmpl", size: 4234, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/meta.tmpl", size: 4239, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -1066,7 +1066,7 @@ func templatePrivacyTmpl() (*asset, error) { return a, nil } -var _templateRuntimeTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x58\x5b\x6f\xdb\x3a\xf2\x7f\x96\x3e\xc5\xfc\x0d\xff\x01\x2b\x48\xe8\xb4\x6f\x9b\x85\x1f\xba\x4d\x8b\x63\x60\x5b\x14\x9b\xb6\x2f\x41\x70\x40\x4b\x23\x8b\x27\x12\xa9\x43\x52\x69\x0c\x43\xdf\x7d\xc1\x9b\x44\xf9\xd6\xb3\xdd\x97\x7d\x49\x44\x72\x66\x38\xf3\x9b\x2b\xbd\xdf\x2f\xaf\xd2\xf7\xa2\xdd\x49\xb6\xad\x34\xbc\xbd\x7d\xf3\xb7\x9b\x56\xa2\x42\xae\xe1\x23\xcd\x71\x23\xc4\x33\xac\x79\x4e\xe0\x5d\x5d\x83\x25\x52\x60\xce\xe5\x0b\x16\x24\xfd\x5a\x31\x05\x4a\x74\x32\x47\xc8\x45\x81\xc0\x14\xd4\x2c\x47\xae\xb0\x80\x8e\x17\x28\x41\x57\x08\xef\x5a\x9a\x57\x08\x6f\xc9\x6d\x38\x85\x52\x74\xbc\x48\x19\xb7\xe7\xff\x5c\xbf\xff\xf0\xf9\xe1\x03\x94\xac\x46\xf0\x7b\x52\x08\x0d\x05\x93\x98\x6b\x21\x77\x20\x4a\xd0\xd1\x65\x5a\x22\x92\xf4\x6a\xd9\xf7\x69\x6a\x6d\xf8\x6a\x58\x3a\xae\x59\x83\xa0\xb1\x69\x6b\xaa\x11\xb6\xc8\x51\x52\x8d\xca\x4a\x54\x79\x85\x0d\xbd\x51\x9a\xe9\xbc\x62\x7c\x0b\xb5\xd8\xb2\x1c\x28\x2f\xa0\x12\x75\x61\x89\xd2\x46\x14\x5d\x8d\xf0\x82\x52\x31\x61\x34\xa1\x1a\x7e\x50\x05\x9d\xb1\x48\x8b\x41\xa4\x95\x48\x95\x42\xad\x48\x9a\xae\x35\x54\x54\xc1\x5b\x28\x85\x6c\xa8\x56\x04\xde\xc1\xcc\xab\x33\x83\x96\xe6\xcf\x74\x8b\x4e\x98\xaa\x44\x57\x17\xb0\x41\xc0\xa6\xd5\xbb\x1b\xd6\xb4\x42\x6a\x2c\xbc\xdd\x69\x43\x19\x1f\x38\x4a\x21\xbd\xda\x0a\x7e\x30\x5d\x41\x25\xc4\xb3\x02\x21\xa1\x15\x35\xcb\x19\x2a\x58\xb4\x42\x23\xd7\x8c\xd6\x90\xef\xf2\x9a\xe5\x5e\x62\x46\x2c\x26\x0a\x73\xc1\x0b\xaf\x97\x71\x4f\x30\x20\xf6\xcf\x0c\xb9\x1e\xd4\xbc\xb6\x88\xc4\xca\x01\x53\x29\x17\x1a\x38\xe6\xa8\x14\x95\x3b\x58\x70\x01\xa2\xd5\x06\x21\xa3\xe2\xc1\xc5\x70\x7c\x71\x80\xef\x19\xb1\x4d\x37\x34\x7f\xfe\x41\x65\xa1\x6e\x72\xd1\xb4\x54\xb3\x0d\xab\x99\xde\x39\x0b\x5b\x89\x2f\x4c\x74\x2a\xb8\x40\x19\xd7\x23\xd7\xa3\xb7\xa1\xc0\x92\x71\x1c\x00\x5e\x5a\xed\xfb\x3e\x05\x00\xd8\xef\x47\xf7\x8f\x1e\x98\x9b\xe3\xfd\x1e\x90\x17\x70\x46\x48\xfb\xbc\x8d\x85\x58\x5d\xf0\x55\x1b\x8e\x39\xcc\xbe\x38\x6c\x66\x91\x4c\x4f\x7b\xfe\x52\x12\x89\xf3\x17\x27\xfb\x3d\xcc\x7d\x88\xdd\xad\x60\x4e\x3e\xd9\xef\x35\x2f\x45\x38\x66\xa5\x71\xaf\x27\x22\xdf\x7d\x1c\x86\xf5\x43\xd7\x58\xc2\x5c\x70\xa5\x61\x91\x26\xc9\x7e\x7f\xe3\x94\x3d\x64\x31\x64\x49\x12\x56\x2b\x98\xed\xf7\x56\xa5\x19\x2c\x97\x10\xb6\x1d\xb6\x36\x77\xb7\xc8\x89\x97\x17\xb4\x3d\x16\x1e\xee\x4f\x12\xf3\x75\x20\xd4\x6c\x5d\x16\x98\x59\x13\xfd\xea\xa2\x3f\x66\x61\x7f\x04\xb6\x42\x5a\xa0\xf4\xb8\x9a\xa3\xb9\xcb\x86\xbb\x15\xdc\x7a\x79\x92\xf2\x2d\xc2\x9c\x3b\x70\x3f\x8b\x02\xd5\x00\x3b\xef\x9a\xdf\x02\xfd\x9c\x93\xcf\x61\xd9\xf7\x0e\xf5\x39\x27\xbf\x51\xf5\xc5\xe4\xd5\xce\x6d\x8e\x2c\x2b\xa0\x45\x11\xad\xdf\x38\x82\xd8\xab\x55\x4c\xe8\x16\x23\xfd\xc4\x5a\x43\x2d\x75\xfb\xbc\x35\x9a\x94\xb4\x56\x38\xe8\x50\x51\xf5\x91\x61\x6d\x43\xee\x21\x17\xad\x85\x61\xa4\x5f\x01\xfe\x09\x73\x62\x4f\x88\x0f\xc9\x09\x62\x53\x48\x8d\x51\x8e\xb1\xef\xc1\x54\x49\x78\xa3\x74\xc8\xc8\x9b\x50\x2e\x97\xfe\x3f\xd9\x0a\xb0\x29\xe6\xa3\xd0\x1b\x11\x82\x38\x39\x15\xe4\x4b\x89\x5b\xa6\xb4\xf1\xca\x3c\x20\x81\xce\xa0\x34\x49\x96\x4b\x57\x09\x4e\xd7\xdd\x49\x2d\x62\xdc\x64\xc9\x9c\xbc\x17\xbc\x64\xdb\xc1\xb6\xbe\x8f\xb4\x3b\x8c\x9d\x00\xdc\xf2\x0a\xde\x8e\x95\xc6\x04\x9b\x3e\x67\x93\xa9\x62\xff\x5b\x76\x5d\xb0\xef\x28\x4b\x6c\xa7\x83\xa0\x9a\xbf\x1f\x2a\xca\x8b\x1a\xa5\x32\xe5\x55\xef\x5a\x0c\x75\x5c\x39\xcb\x4f\x94\xba\xd1\xb8\xbe\x4f\x7d\x89\x5f\xa4\x51\xb2\x07\x75\x1f\xdc\x0d\xd6\xe8\x21\xd3\xd3\x49\x46\x9b\xef\x73\x59\x67\x79\x4e\xd9\x6e\x73\x2b\xda\x98\xca\x4c\x93\xd9\x96\xe9\xaa\xdb\x90\x5c\x34\xcb\xd2\x4f\x21\x8c\xe7\xdd\x86\x6a\x21\x6d\xb9\x4f\xb3\x34\x4d\xbd\x1f\x18\x67\x1a\xca\x8e\xe7\xb6\x1f\x49\xa4\x85\x02\x5a\xd7\x01\x9f\x02\x55\x2e\x59\xab\x85\xf4\x3d\xd4\xc3\x60\xd8\xed\xcc\xb2\x28\xb0\xa4\x5d\xad\xe1\x85\xd6\x1d\xaa\x6b\xf3\x9f\x15\xd4\x32\x08\xe9\x5a\x6e\x66\x9b\xa2\x73\x35\x2a\x60\xda\x70\x1b\xc0\x2b\x64\x72\x68\xd7\x2f\x54\x32\xba\xa9\x51\x91\xd4\xe8\x63\x35\x5b\x64\xb0\x4f\x2f\xa1\x64\xce\xe6\xbe\x1a\x4c\x50\xf1\x47\xde\x8c\xbb\x15\x6c\xa8\xc2\x93\xce\x19\x3d\xc7\xc9\xbf\x9c\x75\x9f\xd8\x2b\xe3\xa1\x88\x3b\xf9\x7d\xef\x36\xef\x56\x36\x26\x55\xe0\x27\xce\x1d\x9f\x69\x63\xf3\xa9\x27\x96\x6c\x91\x1d\x3b\xfa\xb8\x4a\x3a\xf1\xad\x64\x5c\xbb\x4b\x66\xc4\x9d\x99\xd8\x82\x9f\x5d\xe4\x48\xcd\x4d\x47\x52\x6c\xdd\x34\x42\x1e\x6f\x9f\x60\x65\xdd\xbb\xe0\xf8\xaa\xed\x28\xf0\xa9\xd3\xc6\x3d\x59\xbc\x80\xbd\xe9\x4a\x12\x75\x27\xf9\xb8\x8f\x1f\x0d\xa3\xe5\xce\xf5\x2b\xe4\x82\x6b\x7c\xd5\x06\x42\xf3\xff\x1a\x9a\x91\x94\x09\x9e\xc1\xc2\x2c\xbf\x9b\x38\xb8\x06\x94\xd2\xdc\x61\xe5\x26\xac\x34\x6b\x8f\xdd\x19\x7b\xc9\x87\x17\x5a\x07\x59\xe6\xbe\x6b\x68\xb2\xbf\x5b\xbe\xff\x5b\x01\x67\xb5\x97\x15\xb4\xe4\xac\xb6\xb7\xd8\x4d\xdb\x54\x87\x13\xa3\xa4\x33\x20\xc8\x31\xc7\xbd\xf9\xdb\x1f\xfb\xc5\xf9\xbe\x8a\xba\x9b\x81\xef\x8b\x50\x4c\xdb\x09\x6a\x32\xaa\xdc\xc0\xf2\x0a\x5c\x5b\x72\x85\xc1\x56\x29\xef\xa4\xc6\xb8\x5e\x11\x5f\x34\x23\xe1\xac\x78\xf5\xa2\x3f\xb1\x57\x2c\xd6\x7c\x68\x6c\x49\x12\x17\x01\x66\xa9\x0c\x75\x74\x69\x34\x27\xc5\xd0\xd9\x38\xf3\x8e\x9e\x33\x13\x30\x3e\x34\xa3\x68\x7d\x34\x6b\x73\xf6\x44\x16\x8c\x6b\x94\xa6\x1e\xec\x9d\xfe\x8b\x0c\x1e\x9f\x8c\xc3\xcc\x0a\xfa\x8c\xf8\xdd\xa0\xd2\x64\x8c\xf1\x8b\x03\x1c\xd6\xe6\x59\x81\x12\x81\x4a\xf4\xc3\x75\x04\xca\xf8\x6a\xf0\x88\xc4\xdc\x3e\xae\x87\x99\x22\xea\xe4\x1e\x8b\xd6\x62\x51\x4d\xa6\x0c\xdb\x81\xda\x00\xa2\xef\xee\xb1\xa4\x15\x68\xd9\x61\xdc\xcb\xa3\x41\x63\xc8\xc2\x98\x23\xf8\x60\x82\xed\x90\x3f\x3f\x4f\xf7\x11\xb5\x23\xd0\x82\x53\xaf\x0f\x8d\x49\xa7\x6e\x3d\x53\x1a\x5c\xed\x61\x61\x2a\x62\x76\x6e\x3a\xf2\xce\x60\x54\x0c\xcb\xcf\x62\x27\x2a\x10\x43\x84\xc0\xea\x72\x88\xb5\xae\xb2\xad\x79\x81\xaf\x81\xb1\x25\x61\xf9\x34\x28\xe6\x1b\xfd\xaf\x69\x70\xce\x0f\x67\x6f\x3b\x11\xa4\xa7\x0a\xaf\x79\x14\x58\x80\xef\x7d\xb7\x72\xab\xef\x63\xaf\x3a\x88\xcf\x33\x79\x6b\xe7\xcb\x93\x2e\xfc\xd5\x0c\x76\x12\xff\x52\x0a\x3b\xd2\x45\x76\x74\xf7\x49\x14\x5c\xff\x2b\x9d\xc2\xce\x88\x41\xfb\x61\x66\x5f\xdf\x93\x6f\x0a\xe5\xbd\xcf\x5a\x97\x50\x9e\x67\x05\xb4\x6d\xed\x0b\xce\x6f\x58\xfa\x13\x29\xe5\xb0\x2a\x07\x68\x92\xb8\x6b\x7e\x1c\x14\xb8\x9c\x47\x83\x71\x49\x92\xfc\x0e\x31\x0c\xee\xe4\x27\x09\x56\x5a\x13\x0f\x74\xb8\x81\xb9\x99\x5f\xcc\x51\x8c\xfb\x3d\xaa\x7c\x06\xf3\x92\x3c\x68\xd9\xe5\xda\xbd\x19\x46\x9e\xe5\x15\x20\xef\x1a\x98\x0e\x36\x7e\x52\x2c\x80\x23\x95\x7e\x72\x29\x30\xaf\xa9\xa4\xae\x4d\x2c\x4c\xc9\x8b\x26\xc8\x6c\xe8\x03\x51\x10\x2e\xa8\xc5\x93\x84\x30\x5c\xd8\x8a\x56\x92\xb5\xfa\xc0\xbb\x26\xcb\xcc\xf7\xb7\xb6\xa0\x1a\x87\x40\x2d\xc9\x34\x4a\x4d\x61\x58\x2e\x2d\x3e\xd6\xb8\xbe\x37\x43\xf3\x58\x6c\xa3\x91\xcd\xfe\xbc\x60\x3d\x1a\x80\x06\x8b\x10\xf1\xd5\xc5\x15\x8e\x92\x84\x5e\x17\x57\x90\x24\x14\xa0\x70\xc9\x71\xf3\x9e\xc6\xef\x54\xcc\x41\xa1\x88\x0e\x87\x1c\x26\xf7\x83\xa2\xce\xed\x93\xfa\x71\xe6\xfe\x49\x4c\xfc\xa7\xa2\x27\x35\xf3\xb0\x2b\x5c\xf6\xcc\x34\xa6\x1c\xc9\x41\x58\x91\x59\xc4\xef\xf1\x4e\x63\x67\x39\xae\xbe\x1f\x7f\x30\x9b\xc6\x18\x08\x0e\xb9\x44\x3a\xfc\x32\x64\x28\xce\xb9\xef\x40\xe4\x2a\x0e\x88\xa0\x04\x59\x8c\x3f\x89\x18\x4b\xbe\xb2\x06\xdd\xd7\xb7\x6f\x36\x93\xed\x68\x97\x41\xdc\x2c\xe7\x25\xf9\x6a\xa2\xb8\xef\x4f\xf6\x34\x17\x30\xd3\x10\xfd\xab\xd0\x4c\xb8\x7e\x15\xa0\xce\x0a\xf9\xef\xe0\x99\x28\x12\x40\x1a\x11\xfa\x15\x5c\x7c\x0d\x3c\xce\x55\x0b\x0b\x37\xfa\x9d\xc4\x64\xa0\x8f\xc9\x6d\x19\xb9\x5b\x81\xa3\x2f\x61\x66\xdf\x43\x8b\xff\x57\x99\x1b\xab\x67\x91\x36\x11\x80\xdc\xa3\xc0\x14\xd0\xf1\x19\x36\x40\x35\x9b\x60\x35\xf3\x60\xc1\xda\xfe\xb0\x99\xd3\xda\x14\xb7\xcd\xce\x92\x6e\x3a\x56\x17\xe6\x55\xbc\xc1\x52\x48\x04\x45\x5f\x90\x44\x95\x0c\xff\x3c\xb0\xf5\x4d\x3c\xb2\x04\x3d\xa6\xa0\x8f\xd4\x8f\xb7\x4f\x16\x74\x67\xa7\x03\xf4\x28\xf7\xa7\x82\x46\x87\x04\xa6\xf0\x1a\x88\x9e\x9b\x77\xe7\x2e\x74\x94\x25\xb7\x24\x8f\x84\x90\x27\x2b\x6f\xea\x55\x07\x6d\x10\x1b\xf7\x97\x3f\xae\xfd\xc3\xf3\xd5\x6f\x9c\x2a\xc9\x13\x55\x6c\x61\xfa\xc3\xcd\xdd\x67\xaf\xca\xae\xa3\xab\xc6\xda\x14\x1e\x33\xe1\x35\x13\xf1\xff\xc3\xb9\x25\x34\x2c\xb8\x68\x80\x71\xfb\xef\xd7\x50\x5a\xcd\x9d\xe2\x06\x81\x70\x1c\xbd\xc9\x4a\x7e\x5a\xfe\xc9\xd7\x57\xf4\x4c\xf4\x6f\xaf\x51\xe3\xe1\xff\xf8\x44\x8b\x2d\xea\x2f\x3f\x2e\xe2\xef\xd3\x9f\xee\x87\x39\xbf\xf8\x77\x00\x00\x00\xff\xff\x8c\x5d\x15\xfa\x7d\x19\x00\x00") +var _templateRuntimeTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x58\x4b\x6f\xdb\x3a\xf6\x5f\x4b\x9f\xe2\xfc\x0d\xff\x01\x2b\x48\xe8\xb4\xbb\xc9\xc0\x8b\x4e\xd3\xe2\x1a\x98\x16\xc5\xa4\xed\x26\x08\x2e\x68\xe9\xc8\xe2\x8d\x44\xea\x92\x54\x1a\xc3\xd0\x77\x1f\xf0\x25\x51\x7e\xf5\x4e\x67\x33\x9b\x44\x24\x0f\xcf\xe3\x77\x9e\xf4\x7e\xbf\xbc\x4a\xdf\x8b\x76\x27\xd9\xb6\xd2\xf0\xf6\xf6\xcd\xdf\x6e\x5a\x89\x0a\xb9\x86\x8f\x34\xc7\x8d\x10\xcf\xb0\xe6\x39\x81\x77\x75\x0d\x96\x48\x81\x39\x97\x2f\x58\x90\xf4\x6b\xc5\x14\x28\xd1\xc9\x1c\x21\x17\x05\x02\x53\x50\xb3\x1c\xb9\xc2\x02\x3a\x5e\xa0\x04\x5d\x21\xbc\x6b\x69\x5e\x21\xbc\x25\xb7\xe1\x14\x4a\xd1\xf1\x22\x65\xdc\x9e\xff\x73\xfd\xfe\xc3\xe7\x87\x0f\x50\xb2\x1a\xc1\xef\x49\x21\x34\x14\x4c\x62\xae\x85\xdc\x81\x28\x41\x47\xc2\xb4\x44\x24\xe9\xd5\xb2\xef\xd3\xd4\xda\xf0\xd5\x5c\xe9\xb8\x66\x0d\x82\xc6\xa6\xad\xa9\x46\xd8\x22\x47\x49\x35\x2a\xcb\x51\xe5\x15\x36\xf4\x46\x69\xa6\xf3\x8a\xf1\x2d\xd4\x62\xcb\x72\xa0\xbc\x80\x4a\xd4\x85\x25\x4a\x1b\x51\x74\x35\xc2\x0b\x4a\xc5\x84\xd1\x84\x6a\xf8\x41\x15\x74\xc6\x22\x2d\x06\x96\x96\x23\x55\x0a\xb5\x22\x69\xba\xd6\x50\x51\x05\x6f\xa1\x14\xb2\xa1\x5a\x11\x78\x07\x33\xaf\xce\x0c\x5a\x9a\x3f\xd3\x2d\x3a\x66\xaa\x12\x5d\x5d\xc0\x06\x01\x9b\x56\xef\x6e\x58\xd3\x0a\xa9\xb1\xf0\x76\xa7\x0d\x65\x7c\xb8\x51\x0a\xe9\xd5\x56\xf0\x83\xe9\x0a\x2a\x21\x9e\x15\x08\x09\xad\xa8\x59\xce\x50\xc1\xa2\x15\x1a\xb9\x66\xb4\x86\x7c\x97\xd7\x2c\xf7\x1c\x33\x62\x31\x51\x98\x0b\x5e\x78\xbd\x8c\x7b\x82\x01\xb1\x7f\x66\xc8\xf5\xa0\xe6\xb5\x45\x24\x56\x0e\x98\x4a\xb9\xd0\xc0\x31\x47\xa5\xa8\xdc\xc1\x82\x0b\x10\xad\x36\x08\x19\x15\x0f\x04\xc3\xb1\xe0\x00\xdf\x33\x62\x9b\x6e\x68\xfe\xfc\x83\xca\x42\xdd\xe4\xa2\x69\xa9\x66\x1b\x56\x33\xbd\x73\x16\xb6\x12\x5f\x98\xe8\x54\x70\x81\x32\xae\x47\xae\x47\x6f\x43\x81\x25\xe3\x38\x00\xbc\xb4\xda\xf7\x7d\x0a\x00\xb0\xdf\x8f\xee\x1f\x3d\x30\x37\xc7\xfb\x3d\x20\x2f\xe0\x0c\x93\xf6\x79\x1b\x33\xb1\xba\xe0\xab\x36\x37\xe6\x30\xfb\xe2\xb0\x99\x45\x3c\x3d\xed\x79\xa1\x24\x62\xe7\x05\x27\xfb\x3d\xcc\x7d\x88\xdd\xad\x60\x4e\x3e\xd9\xef\x35\x2f\x45\x38\x66\xa5\x71\xaf\x27\x22\xdf\x7d\x1c\x86\xf5\x43\xd7\x58\xc2\x5c\x70\xa5\x61\x91\x26\xc9\x7e\x7f\xe3\x94\x3d\xbc\x62\xc8\x92\x24\xac\x56\x30\xdb\xef\xad\x4a\x33\x58\x2e\x21\x6c\x3b\x6c\x6d\xee\x6e\x91\x13\xcf\x2f\x68\x7b\xcc\x3c\xc8\x4f\x12\xf3\x75\xc0\xd4\x6c\x5d\x66\x98\x59\x13\xfd\xea\xa2\x3f\x66\x61\x7f\x04\xb6\x42\x5a\xa0\xf4\xb8\x9a\xa3\xb9\xcb\x86\xbb\x15\xdc\x7a\x7e\x92\xf2\x2d\xc2\x9c\x3b\x70\x3f\x8b\x02\xd5\x00\x3b\xef\x9a\xdf\x02\xfd\x9c\x93\xcf\x61\xd9\xf7\x0e\xf5\x39\x27\xbf\x51\xf5\xc5\xe4\xd5\xce\x6d\x8e\x57\x56\x40\x8b\x22\x5a\xbf\x71\x04\xb1\x57\xab\x98\xd0\x2d\x46\xfa\x89\xb5\x86\x5a\xea\xf6\x79\x6b\x34\x29\x69\xad\x70\xd0\xa1\xa2\xea\x23\xc3\xda\x86\xdc\x43\x2e\x5a\x0b\xc3\x48\xbf\x02\xfc\x13\xe6\xc4\x9e\x10\x1f\x92\x13\xc4\xa6\x90\x1a\xa3\xdc\xc5\xbe\x07\x53\x25\xe1\x8d\xd2\x21\x23\x6f\x42\xb9\x5c\xfa\xff\x64\x2b\xc0\xa6\x98\x8f\x42\x6f\x44\x08\xe2\xe4\x54\x90\x2f\x25\x6e\x99\xd2\xc6\x2b\xf3\x80\x04\x3a\x83\xd2\x24\x59\x2e\x5d\x25\x38\x5d\x77\x27\xb5\x88\x71\x93\x25\x73\xf2\x5e\xf0\x92\x6d\x07\xdb\xfa\x3e\xd2\xee\x30\x76\x02\x70\xcb\x2b\x78\x3b\x56\x1a\x13\x6c\xfa\x9c\x4d\xa6\x8a\xfd\x6f\xd9\x75\xc1\xbe\xa3\x2c\xb1\x9d\x0e\x82\x6a\x5e\x3e\x54\x94\x17\x35\x4a\x65\xca\xab\xde\xb5\x18\xea\xb8\x72\x96\x9f\x28\x75\xa3\x71\x7d\x9f\xfa\x12\xbf\x48\xa3\x64\x0f\xea\x3e\x38\x09\xd6\xe8\x21\xd3\xd3\x49\x46\x9b\xef\x73\x59\x67\xef\x9c\xb2\xdd\xe6\x56\xb4\x31\xe5\x99\x26\xb3\x2d\xd3\x55\xb7\x21\xb9\x68\x96\xa5\x9f\x42\x18\xcf\xbb\x0d\xd5\x42\xda\x72\x9f\x66\x69\x9a\x7a\x3f\x30\xce\x34\x94\x1d\xcf\x6d\x3f\x92\x48\x0b\x05\xb4\xae\x03\x3e\x05\xaa\x5c\xb2\x56\x0b\xe9\x7b\xa8\x87\xc1\x5c\xb7\x33\xcb\xa2\xc0\x92\x76\xb5\x86\x17\x5a\x77\xa8\xae\xcd\x7f\x56\x50\x7b\x41\x48\xd7\x72\x33\xdb\x14\x9d\xab\x51\x01\xd3\xe6\xb6\x01\xbc\x42\x26\x87\x76\xfd\x42\x25\xa3\x9b\x1a\x15\x49\x8d\x3e\x56\xb3\x45\x06\xfb\xf4\x12\x4a\xe6\x6c\xee\xab\xc1\x04\x15\x7f\xe4\xcd\xb8\x5b\xc1\x86\x2a\x3c\xe9\x9c\xd1\x73\x9c\xfc\xcb\x59\xf7\x89\xbd\x32\x1e\x8a\xb8\xe3\xdf\xf7\x6e\xf3\x6e\x65\x63\x52\x85\xfb\xc4\xb9\xe3\x33\x6d\x6c\x3e\xf5\xc4\x92\x2d\xb2\x63\x47\x1f\x57\x49\xc7\xbe\x95\x8c\x6b\x27\x64\x46\xdc\x99\x89\x2d\xf8\x99\x20\x47\x6a\x24\x1d\x71\xb1\x75\xd3\x30\x79\xbc\x7d\x82\x95\x75\xef\x82\xe3\xab\xb6\xa3\xc0\xa7\x4e\x1b\xf7\x64\xf1\x02\xf6\xa6\x2b\x49\xd4\x9d\xe4\xe3\x3e\x7e\x34\x17\xed\xed\x5c\xbf\x42\x2e\xb8\xc6\x57\x6d\x20\x34\xff\xaf\xa1\x19\x49\x99\xe0\x19\x2c\xcc\xf2\xbb\x89\x83\x6b\x40\x29\x8d\x0c\xcb\x37\x61\xa5\x59\x7b\xec\xce\xd8\x4b\x3e\xbc\xd0\x3a\xf0\x32\xf2\xae\xa1\xc9\xfe\x6e\xef\xfd\xdf\x0a\x38\xab\x3d\xaf\xa0\x25\x67\xb5\x95\x62\x37\x6d\x53\x1d\x4e\x8c\x92\xce\x80\xc0\xc7\x1c\xf7\xe6\x6f\x7f\xec\x17\xe7\xfb\x2a\xea\x6e\x06\xbe\x2f\x42\x31\x6d\x27\xa8\xc9\xa8\x72\x03\xcb\x2b\x70\x6d\xc9\x15\x06\x5b\xa5\xbc\x93\x1a\xe3\x7a\x45\x7c\xd1\x8c\x98\xb3\xe2\xd5\xb3\xfe\xc4\x5e\xb1\x58\xf3\xa1\xb1\x25\x49\x5c\x04\x98\xa5\x32\xd4\x91\xd0\x68\x4e\x8a\xa1\xb3\x71\xe6\x1d\x3d\x67\x26\x60\x7c\x68\x46\xd1\xfa\x68\xd6\xe6\xec\x89\x2c\x18\xd7\x28\x4d\x3d\xd8\x3b\xfd\x17\x19\x3c\x3e\x19\x87\x99\x15\xf4\x19\xf1\xbb\x41\xa5\xc9\x18\xe3\x17\x07\x38\xac\xcd\xb3\x02\x25\x02\x95\xe8\x87\xeb\x08\x94\xf1\xd5\xe0\x11\x89\x6f\xfb\xb8\x1e\x66\x8a\xa8\x93\x7b\x2c\x5a\x8b\x45\x35\x99\x32\x6c\x07\x6a\x03\x88\xbe\xbb\xc7\x9c\x56\xa0\x65\x87\x71\x2f\x8f\x06\x8d\x21\x0b\xe3\x1b\xc1\x07\x13\x6c\x87\xfc\xf9\x79\xba\x8f\xa8\x1d\x81\x16\x9c\x7a\x7d\x68\x4c\x3a\x75\xeb\x99\xd2\xe0\x6a\x0f\x0b\x53\x11\xb3\x73\xd3\x91\x77\x06\xa3\x62\x58\x7e\x16\x3b\x51\x81\x18\x22\x04\x56\x97\x43\xac\x75\x95\x6d\xcd\x0b\x7c\x0d\x17\x5b\x12\x96\x4f\x83\x62\xbe\xd1\xff\x9a\x06\xe7\xfc\x70\x56\xda\x89\x20\x3d\x55\x78\xcd\xa3\xc0\x02\x7c\xef\xbb\x95\x5b\x7d\x1f\x7b\xd5\x41\x7c\x9e\xc9\x5b\x3b\x5f\x9e\x74\xe1\xaf\x66\xb0\xe3\xf8\x97\x52\xd8\x91\x2e\xb2\x23\xd9\x27\x51\x70\xfd\xaf\x74\x0a\x3b\x23\x06\xed\x87\x99\x7d\x7d\x4f\xbe\x29\x94\xf7\x3e\x6b\x5d\x42\xf9\x3b\x2b\xa0\x6d\x6b\x5f\x70\x7e\xc3\xd2\x9f\x48\x29\x87\x55\x39\x40\x93\xc4\x5d\xf3\xe3\xa0\xc0\xe5\x3c\x1a\x8c\x4b\x92\xe4\x77\x88\x61\x70\x27\x3f\x49\xb0\xd2\x9a\x78\xa0\xc3\x0d\xcc\xcd\xfc\x62\x8e\x62\xdc\xef\x51\xe5\x33\x98\x97\xe4\x41\xcb\x2e\xd7\xee\xcd\x30\xde\x59\x5e\x01\xf2\xae\x81\xe9\x60\xe3\x27\xc5\x02\x38\x52\xe9\x27\x97\x02\xf3\x9a\x4a\xea\xda\xc4\xc2\x94\xbc\x68\x82\xcc\x86\x3e\x10\x05\xe1\x82\x5a\x3c\x49\x08\xc3\x85\xad\x68\x25\x59\xab\x0f\xbc\x6b\xb2\xcc\x7c\x7f\x6b\x0b\xaa\x71\x08\xd4\x92\x4c\xa3\xd4\x14\x86\xe5\xd2\xe2\x63\x8d\xeb\x7b\x33\x34\x8f\xc5\x36\x1a\xd9\xec\xcf\x0b\xd6\xa3\x01\x68\xb0\x08\x11\x5f\x5d\x5c\xe1\x28\x49\xe8\x75\x71\x05\x49\x42\x01\x0a\x42\x8e\x9b\xf7\x34\x7e\xa7\x6c\x0e\x0a\x45\x74\x38\xe4\x30\xb9\x1f\x14\x75\x6e\x9f\xd4\x8f\x33\xf2\x27\x31\xf1\x9f\xb2\x9e\xd4\xcc\xc3\xae\x70\xd9\x33\xd3\x98\x72\x24\x07\x61\x45\x66\xd1\x7d\x8f\x77\x1a\x3b\xcb\xdd\xea\xfb\xf1\x07\xb3\x69\x8c\x81\xe0\x90\x4b\xa4\xc3\x2f\x43\x86\xe2\x9c\xfb\x0e\x58\xae\xe2\x80\x08\x4a\x90\xc5\xf8\x93\x88\xb1\xe4\x2b\x6b\xd0\x7d\x7d\xfb\x66\x33\xd9\x8e\x76\x19\xc4\xcd\x72\x5e\x92\xaf\x26\x8a\xfb\xfe\x64\x4f\x73\x01\x33\x0d\xd1\xbf\x0a\xcd\xe4\xd6\xaf\x02\xd4\x59\x26\xff\x1d\x3c\x13\x45\x02\x48\x23\x42\xbf\x82\x8b\xaf\x81\xc7\xb9\x6a\x61\xe1\x46\xbf\x93\x98\x0c\xf4\x31\xb9\x2d\x23\x77\x2b\x70\xf4\x25\xcc\xec\x7b\x68\xf1\xff\x2a\x73\x63\xf5\x2c\x68\x13\x54\x8a\x50\xe4\x1e\x0a\xa6\x80\x8e\x6f\xb1\x01\xaf\xd9\x04\xb0\x99\x47\x0c\xd6\xf6\xd7\xcd\x9c\xd6\xa6\xc2\x6d\x76\x96\x74\xd3\xb1\xba\x30\x4f\xe3\x0d\x96\x42\x22\x28\xfa\x82\x24\x2a\x67\xf8\xe7\x81\xc1\x6f\xe2\xb9\x25\xe8\x31\x45\x7e\xa4\x7e\xbc\x7d\xb2\xc8\x3b\x63\x1d\xaa\x47\x05\x60\xca\x68\xf4\x4a\xb8\x14\x9e\x04\xd1\x9b\xf3\xee\x9c\x40\x47\x59\x72\x4b\xf2\x48\x08\x79\xb2\xfc\xa6\xae\x75\xf8\x06\xb6\x71\x93\xf9\xe3\xda\xbf\x3e\x5f\xfd\xc6\xa9\xba\x3c\x51\xc5\x56\xa7\x3f\xdc\xf0\x7d\x20\xea\x40\x5e\x76\x1d\xc9\x1b\xab\x54\x78\xd6\x84\x77\x4d\xc4\xe4\x1f\xce\x37\xa1\x75\xc1\x45\x2b\x8c\xef\x7f\xbf\x86\xd2\xaa\xef\xb4\x37\x30\x84\xe3\xe8\x75\x56\xf2\xd3\xfc\x4f\xbe\xc3\xa2\x07\xa3\x7f\x85\x8d\x1a\x0f\xff\xc7\xc7\x5a\x6c\x51\x7f\xf9\x99\x11\x7f\x9f\xfe\x74\x3f\xd1\xf9\xc5\xbf\x03\x00\x00\xff\xff\x08\xa6\x12\xc1\x87\x19\x00\x00") func templateRuntimeTmplBytes() ([]byte, error) { return bindataRead( @@ -1081,7 +1081,7 @@ func templateRuntimeTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/runtime.tmpl", size: 6525, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/runtime.tmpl", size: 6535, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/builder/create.tmpl b/entc/gen/template/builder/create.tmpl index 8e74421ce..3236a04ab 100644 --- a/entc/gen/template/builder/create.tmpl +++ b/entc/gen/template/builder/create.tmpl @@ -48,7 +48,8 @@ func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) (*{{ $.Name }}, {{- end }} {{- with or $f.Validators $f.IsEnum }} if v, ok := {{ $mutation }}.{{ $f.MutationGet }}(); ok { - if err := {{ $.Package }}.{{ $f.Validator }}(v); err != nil { + {{- $basic := $f.BasicType "v" }} + if err := {{ $.Package }}.{{ $f.Validator }}({{ $basic }}); err != nil { return nil, &ValidationError{Name: "{{ $f.Name }}", err: fmt.Errorf("{{ $pkg }}: validator failed for field \"{{ $f.Name }}\": %w", err)} } } diff --git a/entc/gen/template/builder/update.tmpl b/entc/gen/template/builder/update.tmpl index 689c4654f..dbd046feb 100644 --- a/entc/gen/template/builder/update.tmpl +++ b/entc/gen/template/builder/update.tmpl @@ -242,7 +242,8 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) { {{ end -}} {{ with and (or $f.Validators $f.IsEnum) (not $f.Immutable) -}} if v, ok := {{ $mutation }}.{{ $f.MutationGet }}(); ok { - if err := {{ $.Package }}.{{ $f.Validator }}(v); err != nil { + {{- $basic := $f.BasicType "v" }} + if err := {{ $.Package }}.{{ $f.Validator }}({{ $basic }}); err != nil { return {{ $zero }}, &ValidationError{Name: "{{ $f.Name }}", err: fmt.Errorf("{{ $pkg }}: validator failed for field \"{{ $f.Name }}\": %w", err)} } } diff --git a/entc/gen/template/meta.tmpl b/entc/gen/template/meta.tmpl index cfc29acef..15b5c0a66 100644 --- a/entc/gen/template/meta.tmpl +++ b/entc/gen/template/meta.tmpl @@ -72,7 +72,7 @@ const ( {{- end }} {{- with $f.Validators }} {{- $name := $f.Validator }} - {{- $type := printf "func (%s) error" $f.Type }} + {{- $type := printf "func (%s) error" $f.Type.Type }} // {{ $name }} is a validator for the "{{ $f.Name }}" field. It is called by the builders before save. {{ $name }} {{ $type }} {{- end }} diff --git a/entc/gen/template/runtime.tmpl b/entc/gen/template/runtime.tmpl index eebe602a9..069d54897 100644 --- a/entc/gen/template/runtime.tmpl +++ b/entc/gen/template/runtime.tmpl @@ -155,7 +155,7 @@ func init() { {{- end }} {{- with $f.Validators }} {{- $name := print $pkg "." $f.Validator }} - {{- $type := printf "func (%s) error" $f.Type }} + {{- $type := printf "func (%s) error" $f.Type.Type }} // {{ $name }} is a validator for the "{{ $f.Name }}" field. It is called by the builders before save. {{- if eq $f.Validators 1 }} {{ $name }} = {{ $desc }}.Validators[0].({{ $type }}) @@ -164,7 +164,7 @@ func init() { validators := {{ $desc }}.Validators fns := [...]func({{ $f.Type }}) error { {{- range $j, $n := xrange $f.Validators }} - validators[{{ $j }}].(func({{ $f.Type }}) error), + validators[{{ $j }}].(func({{ $f.Type.Type }}) error), {{- end }} } return func({{ $f.BuilderField }} {{ $f.Type }}) error { diff --git a/entc/gen/type.go b/entc/gen/type.go index 736745273..70f5a0c67 100644 --- a/entc/gen/type.go +++ b/entc/gen/type.go @@ -162,9 +162,6 @@ func NewType(c *Config, schema *load.Schema) (*Type, error) { return nil, err } for _, f := range schema.Fields { - if err := typ.checkField(f); err != nil { - return nil, err - } tf := &Field{ def: f, Name: f.Name, @@ -180,6 +177,9 @@ func NewType(c *Config, schema *load.Schema) (*Type, error) { Validators: f.Validators, UserDefined: true, } + if err := typ.checkField(tf, f); err != nil { + return nil, err + } // User defined id field. if tf.Name == typ.ID.Name { typ.ID = tf @@ -556,7 +556,7 @@ func (t *Type) check() error { } // checkField checks the schema field. -func (t *Type) checkField(f *load.Field) (err error) { +func (t *Type) checkField(tf *Field, f *load.Field) (err error) { switch { case f.Name == "": err = fmt.Errorf("field name cannot be empty") @@ -575,6 +575,8 @@ func (t *Type) checkField(f *load.Field) (err error) { // Enum types should be named as follows: typepkg.Field. f.Info.Ident = fmt.Sprintf("%s.%s", t.Package(), pascal(f.Name)) } + case tf.Validators > 0 && !tf.ConvertedToBasic(): + err = fmt.Errorf("GoType %q for field %q must be converted to basic Go type for validators", tf.Type, f.Name) } return err } diff --git a/entc/integration/ent/fieldtype/fieldtype.go b/entc/integration/ent/fieldtype/fieldtype.go index fc809db6d..a3dcf484c 100644 --- a/entc/integration/ent/fieldtype/fieldtype.go +++ b/entc/integration/ent/fieldtype/fieldtype.go @@ -165,6 +165,10 @@ var ForeignKeys = []string{ var ( // ValidateOptionalInt32Validator is a validator for the "validate_optional_int32" field. It is called by the builders before save. ValidateOptionalInt32Validator func(int32) error + // NdirValidator is a validator for the "ndir" field. It is called by the builders before save. + NdirValidator func(string) error + // LinkValidator is a validator for the "link" field. It is called by the builders before save. + LinkValidator func(string) error ) // State defines the type for the state enum field. diff --git a/entc/integration/ent/fieldtype_create.go b/entc/integration/ent/fieldtype_create.go index 778cdb68f..d97942057 100644 --- a/entc/integration/ent/fieldtype_create.go +++ b/entc/integration/ent/fieldtype_create.go @@ -564,6 +564,16 @@ func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { return nil, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftc.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return nil, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftc.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return nil, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error node *FieldType diff --git a/entc/integration/ent/fieldtype_update.go b/entc/integration/ent/fieldtype_update.go index 7d6a92ad5..9d7f38b29 100644 --- a/entc/integration/ent/fieldtype_update.go +++ b/entc/integration/ent/fieldtype_update.go @@ -995,6 +995,16 @@ func (ftu *FieldTypeUpdate) Save(ctx context.Context) (int, error) { return 0, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftu.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return 0, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftu.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return 0, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error affected int @@ -2785,6 +2795,16 @@ func (ftuo *FieldTypeUpdateOne) Save(ctx context.Context) (*FieldType, error) { return nil, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftuo.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return nil, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftuo.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return nil, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error node *FieldType diff --git a/entc/integration/ent/runtime.go b/entc/integration/ent/runtime.go index bcda6d02e..3f398b633 100644 --- a/entc/integration/ent/runtime.go +++ b/entc/integration/ent/runtime.go @@ -50,6 +50,14 @@ func init() { fieldtypeDescValidateOptionalInt32 := fieldtypeFields[15].Descriptor() // fieldtype.ValidateOptionalInt32Validator is a validator for the "validate_optional_int32" field. It is called by the builders before save. fieldtype.ValidateOptionalInt32Validator = fieldtypeDescValidateOptionalInt32.Validators[0].(func(int32) error) + // fieldtypeDescNdir is the schema descriptor for ndir field. + fieldtypeDescNdir := fieldtypeFields[27].Descriptor() + // fieldtype.NdirValidator is a validator for the "ndir" field. It is called by the builders before save. + fieldtype.NdirValidator = fieldtypeDescNdir.Validators[0].(func(string) error) + // fieldtypeDescLink is the schema descriptor for link field. + fieldtypeDescLink := fieldtypeFields[30].Descriptor() + // fieldtype.LinkValidator is a validator for the "link" field. It is called by the builders before save. + fieldtype.LinkValidator = fieldtypeDescLink.Validators[0].(func(string) error) fileFields := schema.File{}.Fields() _ = fileFields // fileDescSize is the schema descriptor for size field. diff --git a/entc/integration/ent/schema/fieldtype.go b/entc/integration/ent/schema/fieldtype.go index d6cd1d89a..9e38cfb46 100644 --- a/entc/integration/ent/schema/fieldtype.go +++ b/entc/integration/ent/schema/fieldtype.go @@ -72,6 +72,7 @@ func (FieldType) Fields() []ent.Field { field.String("ndir"). Optional(). Nillable(). + NotEmpty(). GoType(http.Dir("ndir")), field.String("str"). Optional(). @@ -82,6 +83,7 @@ func (FieldType) Fields() []ent.Field { GoType(&sql.NullString{}), field.String("link"). Optional(). + NotEmpty(). GoType(&Link{}), field.String("null_link"). Optional(). diff --git a/entc/integration/gremlin/ent/fieldtype/fieldtype.go b/entc/integration/gremlin/ent/fieldtype/fieldtype.go index 0682f8067..a56917601 100644 --- a/entc/integration/gremlin/ent/fieldtype/fieldtype.go +++ b/entc/integration/gremlin/ent/fieldtype/fieldtype.go @@ -108,6 +108,10 @@ const ( var ( // ValidateOptionalInt32Validator is a validator for the "validate_optional_int32" field. It is called by the builders before save. ValidateOptionalInt32Validator func(int32) error + // NdirValidator is a validator for the "ndir" field. It is called by the builders before save. + NdirValidator func(string) error + // LinkValidator is a validator for the "link" field. It is called by the builders before save. + LinkValidator func(string) error ) // State defines the type for the state enum field. diff --git a/entc/integration/gremlin/ent/fieldtype_create.go b/entc/integration/gremlin/ent/fieldtype_create.go index bd30baecf..a515bdff4 100644 --- a/entc/integration/gremlin/ent/fieldtype_create.go +++ b/entc/integration/gremlin/ent/fieldtype_create.go @@ -565,6 +565,16 @@ func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { return nil, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftc.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return nil, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftc.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return nil, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error node *FieldType diff --git a/entc/integration/gremlin/ent/fieldtype_update.go b/entc/integration/gremlin/ent/fieldtype_update.go index 16b458cb8..5e84eb99c 100644 --- a/entc/integration/gremlin/ent/fieldtype_update.go +++ b/entc/integration/gremlin/ent/fieldtype_update.go @@ -997,6 +997,16 @@ func (ftu *FieldTypeUpdate) Save(ctx context.Context) (int, error) { return 0, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftu.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return 0, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftu.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return 0, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error affected int @@ -2378,6 +2388,16 @@ func (ftuo *FieldTypeUpdateOne) Save(ctx context.Context) (*FieldType, error) { return nil, &ValidationError{Name: "state", err: fmt.Errorf("ent: validator failed for field \"state\": %w", err)} } } + if v, ok := ftuo.mutation.Ndir(); ok { + if err := fieldtype.NdirValidator(string(v)); err != nil { + return nil, &ValidationError{Name: "ndir", err: fmt.Errorf("ent: validator failed for field \"ndir\": %w", err)} + } + } + if v, ok := ftuo.mutation.Link(); ok { + if err := fieldtype.LinkValidator(v.String()); err != nil { + return nil, &ValidationError{Name: "link", err: fmt.Errorf("ent: validator failed for field \"link\": %w", err)} + } + } var ( err error node *FieldType diff --git a/entc/integration/gremlin/ent/runtime.go b/entc/integration/gremlin/ent/runtime.go index 4e6874fc2..fd7ed59dd 100644 --- a/entc/integration/gremlin/ent/runtime.go +++ b/entc/integration/gremlin/ent/runtime.go @@ -50,6 +50,14 @@ func init() { fieldtypeDescValidateOptionalInt32 := fieldtypeFields[15].Descriptor() // fieldtype.ValidateOptionalInt32Validator is a validator for the "validate_optional_int32" field. It is called by the builders before save. fieldtype.ValidateOptionalInt32Validator = fieldtypeDescValidateOptionalInt32.Validators[0].(func(int32) error) + // fieldtypeDescNdir is the schema descriptor for ndir field. + fieldtypeDescNdir := fieldtypeFields[27].Descriptor() + // fieldtype.NdirValidator is a validator for the "ndir" field. It is called by the builders before save. + fieldtype.NdirValidator = fieldtypeDescNdir.Validators[0].(func(string) error) + // fieldtypeDescLink is the schema descriptor for link field. + fieldtypeDescLink := fieldtypeFields[30].Descriptor() + // fieldtype.LinkValidator is a validator for the "link" field. It is called by the builders before save. + fieldtype.LinkValidator = fieldtypeDescLink.Validators[0].(func(string) error) fileFields := schema.File{}.Fields() _ = fileFields // fileDescSize is the schema descriptor for size field.