From eb9b958309b6025d106239eadd7d7a287372a21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=85=E5=B0=8F=E9=BB=91?= Date: Fri, 20 Dec 2013 23:15:00 +0800 Subject: [PATCH] gofmt commented go file --- config.go | 114 ++++++++++++++++++++---------------------------------- 1 file changed, 43 insertions(+), 71 deletions(-) diff --git a/config.go b/config.go index e0415641..9baf9aa5 100644 --- a/config.go +++ b/config.go @@ -14,77 +14,49 @@ import ( ) var ( - // beego application - BeeApp *App - // application configurations - AppName string - AppPath string - AppConfigPath string - StaticDir map[string]string - // template caching map - TemplateCache map[string]*template.Template - // files with should be compressed with gzip (.js,.css,etc) - StaticExtensionsToGzip []string - // http server configurations - HttpAddr string - HttpPort int - HttpTLS bool - HttpCertFile string - HttpKeyFile string - // flag of auto recover panic - RecoverPanic bool - // flag of render template automatically - AutoRender bool - ViewsPath string - // run mode, "dev" or "prod" - RunMode string - AppConfig config.ConfigContainer - // global session mananger - GlobalSessions *session.Manager - // flag of starting session auto. default is false. - SessionOn bool - // default session provider, memory, mysql , redis ,etc. - SessionProvider string - // the cookie name when saving session id into cookie. - SessionName string - // session gc time for auto cleaning expired session. - SessionGCMaxLifetime int64 - // if use mysql/redis/file provider, define save path to connection info. - SessionSavePath string - // session hash generation func. - SessionHashFunc string - // session hash salt string. - SessionHashKey string - // the life time of session id in cookie. - SessionCookieLifeTime int - UseFcgi bool - MaxMemory int64 - // flag of enable gzip - EnableGzip bool - // flag of display directory index. default is false. - DirectoryIndex bool - // flag of hot update checking in app self. default is false. - EnableHotUpdate bool - HttpServerTimeOut int64 - // flag of show errors in page. if true, show error and trace info in page rendered with error template. - ErrorsShow bool - // xsrf hash salt string. - XSRFKEY string - // flag of enable xsrf. - EnableXSRF bool - // the expiry of xsrf value. - XSRFExpire int - // flag of copy raw request body in context. - CopyRequestBody bool - TemplateLeft string - TemplateRight string - // beego server name exported in response header. - BeegoServerName string - // flag of enable admin module to log every request info. - EnableAdmin bool - // http server configurations for admin module. - AdminHttpAddr string - AdminHttpPort int + BeeApp *App // beego application + AppName string + AppPath string + AppConfigPath string + StaticDir map[string]string + TemplateCache map[string]*template.Template // template caching map + StaticExtensionsToGzip []string // files with should be compressed with gzip (.js,.css,etc) + HttpAddr string + HttpPort int + HttpTLS bool + HttpCertFile string + HttpKeyFile string + RecoverPanic bool // flag of auto recover panic + AutoRender bool // flag of render template automatically + ViewsPath string + RunMode string // run mode, "dev" or "prod" + AppConfig config.ConfigContainer + GlobalSessions *session.Manager // global session mananger + SessionOn bool // flag of starting session auto. default is false. + SessionProvider string // default session provider, memory, mysql , redis ,etc. + SessionName string // the cookie name when saving session id into cookie. + SessionGCMaxLifetime int64 // session gc time for auto cleaning expired session. + SessionSavePath string // if use mysql/redis/file provider, define save path to connection info. + SessionHashFunc string // session hash generation func. + SessionHashKey string // session hash salt string. + SessionCookieLifeTime int // the life time of session id in cookie. + UseFcgi bool + MaxMemory int64 + EnableGzip bool // flag of enable gzip + DirectoryIndex bool // flag of display directory index. default is false. + EnableHotUpdate bool // flag of hot update checking by app self. default is false. + HttpServerTimeOut int64 + ErrorsShow bool // flag of show errors in page. if true, show error and trace info in page rendered with error template. + XSRFKEY string // xsrf hash salt string. + EnableXSRF bool // flag of enable xsrf. + XSRFExpire int // the expiry of xsrf value. + CopyRequestBody bool // flag of copy raw request body in context. + TemplateLeft string + TemplateRight string + BeegoServerName string // beego server name exported in response header. + EnableAdmin bool // flag of enable admin module to log every request info. + AdminHttpAddr string // http server configurations for admin module. + AdminHttpPort int ) func init() {