gofmt commented go file
Showing
1 changed file
with
26 additions
and
54 deletions
| ... | @@ -14,76 +14,48 @@ import ( | ... | @@ -14,76 +14,48 @@ import ( |
| 14 | ) | 14 | ) |
| 15 | 15 | ||
| 16 | var ( | 16 | var ( |
| 17 | // beego application | 17 | BeeApp *App // beego application |
| 18 | BeeApp *App | ||
| 19 | // application configurations | ||
| 20 | AppName string | 18 | AppName string |
| 21 | AppPath string | 19 | AppPath string |
| 22 | AppConfigPath string | 20 | AppConfigPath string |
| 23 | StaticDir map[string]string | 21 | StaticDir map[string]string |
| 24 | // template caching map | 22 | TemplateCache map[string]*template.Template // template caching map |
| 25 | TemplateCache map[string]*template.Template | 23 | StaticExtensionsToGzip []string // files with should be compressed with gzip (.js,.css,etc) |
| 26 | // files with should be compressed with gzip (.js,.css,etc) | ||
| 27 | StaticExtensionsToGzip []string | ||
| 28 | // http server configurations | ||
| 29 | HttpAddr string | 24 | HttpAddr string |
| 30 | HttpPort int | 25 | HttpPort int |
| 31 | HttpTLS bool | 26 | HttpTLS bool |
| 32 | HttpCertFile string | 27 | HttpCertFile string |
| 33 | HttpKeyFile string | 28 | HttpKeyFile string |
| 34 | // flag of auto recover panic | 29 | RecoverPanic bool // flag of auto recover panic |
| 35 | RecoverPanic bool | 30 | AutoRender bool // flag of render template automatically |
| 36 | // flag of render template automatically | ||
| 37 | AutoRender bool | ||
| 38 | ViewsPath string | 31 | ViewsPath string |
| 39 | // run mode, "dev" or "prod" | 32 | RunMode string // run mode, "dev" or "prod" |
| 40 | RunMode string | ||
| 41 | AppConfig config.ConfigContainer | 33 | AppConfig config.ConfigContainer |
| 42 | // global session mananger | 34 | GlobalSessions *session.Manager // global session mananger |
| 43 | GlobalSessions *session.Manager | 35 | SessionOn bool // flag of starting session auto. default is false. |
| 44 | // flag of starting session auto. default is false. | 36 | SessionProvider string // default session provider, memory, mysql , redis ,etc. |
| 45 | SessionOn bool | 37 | SessionName string // the cookie name when saving session id into cookie. |
| 46 | // default session provider, memory, mysql , redis ,etc. | 38 | SessionGCMaxLifetime int64 // session gc time for auto cleaning expired session. |
| 47 | SessionProvider string | 39 | SessionSavePath string // if use mysql/redis/file provider, define save path to connection info. |
| 48 | // the cookie name when saving session id into cookie. | 40 | SessionHashFunc string // session hash generation func. |
| 49 | SessionName string | 41 | SessionHashKey string // session hash salt string. |
| 50 | // session gc time for auto cleaning expired session. | 42 | SessionCookieLifeTime int // the life time of session id in cookie. |
| 51 | SessionGCMaxLifetime int64 | ||
| 52 | // if use mysql/redis/file provider, define save path to connection info. | ||
| 53 | SessionSavePath string | ||
| 54 | // session hash generation func. | ||
| 55 | SessionHashFunc string | ||
| 56 | // session hash salt string. | ||
| 57 | SessionHashKey string | ||
| 58 | // the life time of session id in cookie. | ||
| 59 | SessionCookieLifeTime int | ||
| 60 | UseFcgi bool | 43 | UseFcgi bool |
| 61 | MaxMemory int64 | 44 | MaxMemory int64 |
| 62 | // flag of enable gzip | 45 | EnableGzip bool // flag of enable gzip |
| 63 | EnableGzip bool | 46 | DirectoryIndex bool // flag of display directory index. default is false. |
| 64 | // flag of display directory index. default is false. | 47 | EnableHotUpdate bool // flag of hot update checking by app self. default is false. |
| 65 | DirectoryIndex bool | ||
| 66 | // flag of hot update checking in app self. default is false. | ||
| 67 | EnableHotUpdate bool | ||
| 68 | HttpServerTimeOut int64 | 48 | HttpServerTimeOut int64 |
| 69 | // flag of show errors in page. if true, show error and trace info in page rendered with error template. | 49 | ErrorsShow bool // flag of show errors in page. if true, show error and trace info in page rendered with error template. |
| 70 | ErrorsShow bool | 50 | XSRFKEY string // xsrf hash salt string. |
| 71 | // xsrf hash salt string. | 51 | EnableXSRF bool // flag of enable xsrf. |
| 72 | XSRFKEY string | 52 | XSRFExpire int // the expiry of xsrf value. |
| 73 | // flag of enable xsrf. | 53 | CopyRequestBody bool // flag of copy raw request body in context. |
| 74 | EnableXSRF bool | ||
| 75 | // the expiry of xsrf value. | ||
| 76 | XSRFExpire int | ||
| 77 | // flag of copy raw request body in context. | ||
| 78 | CopyRequestBody bool | ||
| 79 | TemplateLeft string | 54 | TemplateLeft string |
| 80 | TemplateRight string | 55 | TemplateRight string |
| 81 | // beego server name exported in response header. | 56 | BeegoServerName string // beego server name exported in response header. |
| 82 | BeegoServerName string | 57 | EnableAdmin bool // flag of enable admin module to log every request info. |
| 83 | // flag of enable admin module to log every request info. | 58 | AdminHttpAddr string // http server configurations for admin module. |
| 84 | EnableAdmin bool | ||
| 85 | // http server configurations for admin module. | ||
| 86 | AdminHttpAddr string | ||
| 87 | AdminHttpPort int | 59 | AdminHttpPort int |
| 88 | ) | 60 | ) |
| 89 | 61 | ... | ... |
-
Please register or sign in to post a comment