github.com/livermorium/go-swagger@v0.19.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 {{ range .DefaultImports }}{{ printf "%q" .}} 16 {{ end }} 17 {{ range $key, $value := .Imports }}{{ $key }} {{ printf "%q" $value }} 18 {{ end }} 19 ) 20 21 22 var ( 23 // SwaggerJSON embedded version of the swagger document used at generation time 24 SwaggerJSON json.RawMessage 25 // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time 26 FlatSwaggerJSON json.RawMessage 27 ) 28 29 func init() { 30 SwaggerJSON = json.RawMessage([]byte(`{{ .SwaggerJSON }}`)) 31 FlatSwaggerJSON = json.RawMessage([]byte(`{{ .FlatSwaggerJSON }}`)) 32 }