github.com/6543-forks/go-swagger@v0.26.0/generator/templates/swagger_json_embed.gotmpl (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 4 {{ if .Copyright -}}// {{ comment .Copyright -}}{{ end }} 5 6 7 package {{ .APIPackage }} 8 9 // This file was generated by the swagger tool. 10 // Editing this file might prove futile when you re-run the swagger generate command 11 12 import ( 13 "encoding/json" 14 15 {{ imports .DefaultImports }} 16 {{ imports .Imports }} 17 ) 18 19 20 var ( 21 // SwaggerJSON embedded version of the swagger document used at generation time 22 SwaggerJSON json.RawMessage 23 // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time 24 FlatSwaggerJSON json.RawMessage 25 ) 26 27 func init() { 28 SwaggerJSON = json.RawMessage([]byte(`{{ .SwaggerJSON }}`)) 29 FlatSwaggerJSON = json.RawMessage([]byte(`{{ .FlatSwaggerJSON }}`)) 30 }