From 0f170a80da0391a0c8efe10c748c3417233d50a5 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 25 Jun 2014 10:39:37 +0800 Subject: [PATCH] update the comments fix #658 --- admin.go | 4 ++++ app.go | 4 ++++ beego.go | 4 ++++ cache/cache.go | 4 ++++ cache/cache_test.go | 4 ++++ cache/conv.go | 4 ++++ cache/conv_test.go | 4 ++++ cache/file.go | 4 ++++ cache/memcache/memcache.go | 4 ++++ cache/memory.go | 4 ++++ cache/redis/redis.go | 4 ++++ config.go | 4 ++++ config/config.go | 4 ++++ config/fake.go | 4 ++++ config/ini.go | 4 ++++ config/ini_test.go | 4 ++++ config/json.go | 4 ++++ config/json_test.go | 10 +++++++--- config/xml/xml.go | 4 ++++ config/xml/xml_test.go | 4 ++++ config/yaml/yaml.go | 4 ++++ config/yaml/yaml_test.go | 4 ++++ config_test.go | 4 ++++ context/context.go | 4 ++++ context/input.go | 4 ++++ context/input_test.go | 4 ++++ context/output.go | 4 ++++ controller.go | 4 ++++ docs.go | 10 ++++++++++ example/beeapi/main.go | 4 ++++ filter.go | 4 ++++ filter_test.go | 4 ++++ flash.go | 4 ++++ flash_test.go | 4 ++++ httplib/httplib.go | 4 ++++ httplib/httplib_test.go | 6 +++++- log.go | 4 ++++ logs/conn.go | 4 ++++ logs/conn_test.go | 4 ++++ logs/console.go | 4 ++++ logs/console_test.go | 4 ++++ logs/file.go | 4 ++++ logs/file_test.go | 4 ++++ logs/log.go | 4 ++++ logs/smtp.go | 4 ++++ logs/smtp_test.go | 4 ++++ memzipfile.go | 4 ++++ middleware/error.go | 4 ++++ middleware/exceptions.go | 4 ++++ middleware/i18n.go | 4 ++++ mime.go | 4 ++++ namespace.go | 5 +++++ namespace_test.go | 4 ++++ orm/cmd.go | 6 +++++- orm/cmd_utils.go | 6 +++++- orm/db.go | 6 +++++- orm/db_alias.go | 6 +++++- orm/db_mysql.go | 6 +++++- orm/db_oracle.go | 6 +++++- orm/db_postgres.go | 6 +++++- orm/db_sqlite.go | 6 +++++- orm/db_tables.go | 6 +++++- orm/db_utils.go | 6 +++++- orm/models.go | 6 +++++- orm/models_boot.go | 6 +++++- orm/models_fields.go | 6 +++++- orm/models_info_f.go | 6 +++++- orm/models_info_m.go | 6 +++++- orm/models_test.go | 6 +++++- orm/models_utils.go | 6 +++++- orm/orm.go | 6 +++++- orm/orm_conds.go | 6 +++++- orm/orm_log.go | 6 +++++- orm/orm_object.go | 6 +++++- orm/orm_querym2m.go | 6 +++++- orm/orm_queryset.go | 6 +++++- orm/orm_raw.go | 6 +++++- orm/orm_test.go | 6 +++++- orm/types.go | 6 +++++- orm/utils.go | 6 +++++- parser.go | 5 +++++ plugins/auth/basic.go | 6 +++++- router.go | 4 ++++ router_test.go | 4 ++++ session/couchbase/sess_couchbase.go | 4 ++++ session/memcache/sess_memcache.go | 4 ++++ session/mysql/sess_mysql.go | 4 ++++ session/postgres/sess_postgresql.go | 4 ++++ session/redis/sess_redis.go | 4 ++++ session/sess_cookie.go | 4 ++++ session/sess_cookie_test.go | 4 ++++ session/sess_file.go | 4 ++++ session/sess_mem.go | 4 ++++ session/sess_mem_test.go | 4 ++++ session/sess_test.go | 4 ++++ session/sess_utils.go | 4 ++++ session/session.go | 4 ++++ staticfile.go | 11 +++++++---- swagger/docsSpec.go | 10 ++++++++++ template.go | 4 ++++ template_test.go | 4 ++++ templatefunc.go | 11 ++++++----- templatefunc_test.go | 4 ++++ testing/client.go | 4 ++++ toolbox/debug.go | 4 ++++ toolbox/debug_test.go | 4 ++++ toolbox/healthcheck.go | 4 ++++ toolbox/profile.go | 4 ++++ toolbox/profile_test.go | 4 ++++ toolbox/statistics.go | 4 ++++ toolbox/statistics_test.go | 4 ++++ toolbox/task.go | 4 ++++ toolbox/task_test.go | 4 ++++ tree.go | 10 ++++++++++ tree_test.go | 10 ++++++++++ utils/caller.go | 4 ++++ utils/caller_test.go | 4 ++++ utils/captcha/captcha.go | 4 ++++ utils/captcha/image.go | 4 ++++ utils/captcha/image_test.go | 4 ++++ utils/captcha/siprng.go | 4 ++++ utils/captcha/siprng_test.go | 4 ++++ utils/file.go | 4 ++++ utils/file_test.go | 4 ++++ utils/mail.go | 4 ++++ utils/mail_test.go | 4 ++++ utils/rand.go | 11 +++++++---- utils/safemap.go | 4 ++++ utils/safemap_test.go | 4 ++++ utils/slice.go | 4 ++++ utils/slice_test.go | 4 ++++ validation/util.go | 4 ++++ validation/util_test.go | 4 ++++ validation/validation.go | 4 ++++ validation/validation_test.go | 4 ++++ validation/validators.go | 4 ++++ 136 files changed, 610 insertions(+), 45 deletions(-) diff --git a/admin.go b/admin.go index cfaaef72..0ef4f93f 100644 --- a/admin.go +++ b/admin.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/app.go b/app.go index 26e565c5..d0a47665 100644 --- a/app.go +++ b/app.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/beego.go b/beego.go index d230d998..3f33242f 100644 --- a/beego.go +++ b/beego.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/cache/cache.go b/cache/cache.go index 3273e2f9..c4baeba3 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/cache_test.go b/cache/cache_test.go index 263ad257..4ba1fb8a 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/conv.go b/cache/conv.go index 00cbdd24..202939b3 100644 --- a/cache/conv.go +++ b/cache/conv.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/conv_test.go b/cache/conv_test.go index 82d73af7..f6756fc4 100644 --- a/cache/conv_test.go +++ b/cache/conv_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/file.go b/cache/file.go index 7178aa20..62febac3 100644 --- a/cache/file.go +++ b/cache/file.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/memcache/memcache.go b/cache/memcache/memcache.go index 37658ffe..7b473dff 100644 --- a/cache/memcache/memcache.go +++ b/cache/memcache/memcache.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/memory.go b/cache/memory.go index 2d2f3803..00e055e8 100644 --- a/cache/memory.go +++ b/cache/memory.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/cache/redis/redis.go b/cache/redis/redis.go index 451166a3..b532ca85 100644 --- a/cache/redis/redis.go +++ b/cache/redis/redis.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package cache diff --git a/config.go b/config.go index 280edc6b..1984e3cd 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/config/config.go b/config/config.go index 7446abb4..c7454fe0 100644 --- a/config/config.go +++ b/config/config.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/fake.go b/config/fake.go index ece4f696..1ddf8298 100644 --- a/config/fake.go +++ b/config/fake.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/ini.go b/config/ini.go index 0593864a..500d07c1 100644 --- a/config/ini.go +++ b/config/ini.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/ini_test.go b/config/ini_test.go index 3e792ded..e5e6b9ab 100644 --- a/config/ini_test.go +++ b/config/ini_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/json.go b/config/json.go index 440d98bf..8cac5e21 100644 --- a/config/json.go +++ b/config/json.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/json_test.go b/config/json_test.go index a2741941..849febd0 100644 --- a/config/json_test.go +++ b/config/json_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config @@ -61,13 +65,13 @@ func TestJsonStartsWithArray(t *testing.T) { t.Fatal(err) } rootArray, err := jsonconf.DIY("rootArray") - if (err != nil) { + if err != nil { t.Error("array does not exist as element") } rootArrayCasted := rootArray.([]interface{}) - if (rootArrayCasted == nil) { + if rootArrayCasted == nil { t.Error("array from root is nil") - }else { + } else { elem := rootArrayCasted[0].(map[string]interface{}) if elem["url"] != "user" || elem["serviceAPI"] != "http://www.test.com/user" { t.Error("array[0] values are not valid") diff --git a/config/xml/xml.go b/config/xml/xml.go index f763d4f0..05171a37 100644 --- a/config/xml/xml.go +++ b/config/xml/xml.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/xml/xml_test.go b/config/xml/xml_test.go index 767b02ed..ba6ebbd6 100644 --- a/config/xml/xml_test.go +++ b/config/xml/xml_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/yaml/yaml.go b/config/yaml/yaml.go index 04a6def3..8cae5109 100644 --- a/config/yaml/yaml.go +++ b/config/yaml/yaml.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config/yaml/yaml_test.go b/config/yaml/yaml_test.go index fbeaf654..3a8d68dc 100644 --- a/config/yaml/yaml_test.go +++ b/config/yaml/yaml_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package config diff --git a/config_test.go b/config_test.go index 19eaeacf..70bbf0d6 100644 --- a/config_test.go +++ b/config_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/context/context.go b/context/context.go index 87986bec..15a05c90 100644 --- a/context/context.go +++ b/context/context.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package context diff --git a/context/input.go b/context/input.go index 400f8a57..46b31352 100644 --- a/context/input.go +++ b/context/input.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package context diff --git a/context/input_test.go b/context/input_test.go index f53d013d..b6d1f9d5 100644 --- a/context/input_test.go +++ b/context/input_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package context diff --git a/context/output.go b/context/output.go index 8011392f..aa9efb4c 100644 --- a/context/output.go +++ b/context/output.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package context diff --git a/controller.go b/controller.go index d1f19e43..6f7b510c 100644 --- a/controller.go +++ b/controller.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/docs.go b/docs.go index b8e7d193..07b25dd4 100644 --- a/docs.go +++ b/docs.go @@ -1,3 +1,13 @@ +// Beego (http://beego.me/) + +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie + package beego import ( diff --git a/example/beeapi/main.go b/example/beeapi/main.go index bed06196..c1250e03 100644 --- a/example/beeapi/main.go +++ b/example/beeapi/main.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package main diff --git a/filter.go b/filter.go index a7db36a4..4f99c300 100644 --- a/filter.go +++ b/filter.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/filter_test.go b/filter_test.go index e5428b96..e6056599 100644 --- a/filter_test.go +++ b/filter_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/flash.go b/flash.go index a67ee5c8..66cb1f07 100644 --- a/flash.go +++ b/flash.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/flash_test.go b/flash_test.go index f0a17480..b3ecc4c5 100644 --- a/flash_test.go +++ b/flash_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/httplib/httplib.go b/httplib/httplib.go index f7d083f2..53b8e6ca 100644 --- a/httplib/httplib.go +++ b/httplib/httplib.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package httplib diff --git a/httplib/httplib_test.go b/httplib/httplib_test.go index 7325862c..64de6596 100644 --- a/httplib/httplib_test.go +++ b/httplib/httplib_test.go @@ -1,7 +1,11 @@ -// Beego (http://beego.me) +// Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package httplib diff --git a/log.go b/log.go index ac72ec34..5465dc1a 100644 --- a/log.go +++ b/log.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/logs/conn.go b/logs/conn.go index 588e73f4..d36fa364 100644 --- a/logs/conn.go +++ b/logs/conn.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/conn_test.go b/logs/conn_test.go index e05cbe05..aa50b41d 100644 --- a/logs/conn_test.go +++ b/logs/conn_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/console.go b/logs/console.go index 9316a55e..c5c72faa 100644 --- a/logs/console.go +++ b/logs/console.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/console_test.go b/logs/console_test.go index a8c942c1..30e1e4c6 100644 --- a/logs/console_test.go +++ b/logs/console_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/file.go b/logs/file.go index f5cbb9ff..a7f4c724 100644 --- a/logs/file.go +++ b/logs/file.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/file_test.go b/logs/file_test.go index 90349ec6..65d543ba 100644 --- a/logs/file_test.go +++ b/logs/file_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/log.go b/logs/log.go index 423f9ec3..b3dedf98 100644 --- a/logs/log.go +++ b/logs/log.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/smtp.go b/logs/smtp.go index 2b9e50a0..d5c7101d 100644 --- a/logs/smtp.go +++ b/logs/smtp.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/logs/smtp_test.go b/logs/smtp_test.go index cb8d3009..96cd3759 100644 --- a/logs/smtp_test.go +++ b/logs/smtp_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package logs diff --git a/memzipfile.go b/memzipfile.go index 92d6003a..a100b59d 100644 --- a/memzipfile.go +++ b/memzipfile.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/middleware/error.go b/middleware/error.go index 3aff9a80..10d4fc53 100644 --- a/middleware/error.go +++ b/middleware/error.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package middleware diff --git a/middleware/exceptions.go b/middleware/exceptions.go index 09cb46cb..a6a18ff0 100644 --- a/middleware/exceptions.go +++ b/middleware/exceptions.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package middleware diff --git a/middleware/i18n.go b/middleware/i18n.go index 10ec12bb..87886d4a 100644 --- a/middleware/i18n.go +++ b/middleware/i18n.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package middleware diff --git a/mime.go b/mime.go index f611a16e..ada6d099 100644 --- a/mime.go +++ b/mime.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/namespace.go b/namespace.go index 512afd69..985ded3b 100644 --- a/namespace.go +++ b/namespace.go @@ -1,8 +1,13 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie + package beego import ( diff --git a/namespace_test.go b/namespace_test.go index 9142d62c..64bd8dec 100644 --- a/namespace_test.go +++ b/namespace_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/orm/cmd.go b/orm/cmd.go index ecfc3bd5..a15727ae 100644 --- a/orm/cmd.go +++ b/orm/cmd.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index 63cc5a64..13e6fe59 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db.go b/orm/db.go index d8301b75..847ab0d5 100644 --- a/orm/db.go +++ b/orm/db.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_alias.go b/orm/db_alias.go index f9d0ab5a..816441a6 100644 --- a/orm/db_alias.go +++ b/orm/db_alias.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_mysql.go b/orm/db_mysql.go index 33a01ba4..e024b2a1 100644 --- a/orm/db_mysql.go +++ b/orm/db_mysql.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_oracle.go b/orm/db_oracle.go index d2253758..5c93e3c8 100644 --- a/orm/db_oracle.go +++ b/orm/db_oracle.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_postgres.go b/orm/db_postgres.go index 463150dc..4609d8ca 100644 --- a/orm/db_postgres.go +++ b/orm/db_postgres.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_sqlite.go b/orm/db_sqlite.go index 94c74a69..de2bf63d 100644 --- a/orm/db_sqlite.go +++ b/orm/db_sqlite.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_tables.go b/orm/db_tables.go index 690b4eaa..21d18876 100644 --- a/orm/db_tables.go +++ b/orm/db_tables.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/db_utils.go b/orm/db_utils.go index 8f963f5e..8d895e43 100644 --- a/orm/db_utils.go +++ b/orm/db_utils.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models.go b/orm/models.go index ff71ee62..2d82a204 100644 --- a/orm/models.go +++ b/orm/models.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_boot.go b/orm/models_boot.go index 0abaf98f..eb3fce66 100644 --- a/orm/models_boot.go +++ b/orm/models_boot.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_fields.go b/orm/models_fields.go index c1c9b7e2..f328999d 100644 --- a/orm/models_fields.go +++ b/orm/models_fields.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_info_f.go b/orm/models_info_f.go index 8ec2bbeb..622791d9 100644 --- a/orm/models_info_f.go +++ b/orm/models_info_f.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_info_m.go b/orm/models_info_m.go index 265c6379..f759fa33 100644 --- a/orm/models_info_m.go +++ b/orm/models_info_m.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_test.go b/orm/models_test.go index 775c2856..2b42fd52 100644 --- a/orm/models_test.go +++ b/orm/models_test.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/models_utils.go b/orm/models_utils.go index c448c55e..bf331fed 100644 --- a/orm/models_utils.go +++ b/orm/models_utils.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm.go b/orm/orm.go index 5503256e..947a453c 100644 --- a/orm/orm.go +++ b/orm/orm.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_conds.go b/orm/orm_conds.go index 4b0cfa65..0110ac18 100644 --- a/orm/orm_conds.go +++ b/orm/orm_conds.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_log.go b/orm/orm_log.go index e132992d..cde61449 100644 --- a/orm/orm_log.go +++ b/orm/orm_log.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_object.go b/orm/orm_object.go index 44d4aebc..82067026 100644 --- a/orm/orm_object.go +++ b/orm/orm_object.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_querym2m.go b/orm/orm_querym2m.go index 370de60d..bcd67660 100644 --- a/orm/orm_querym2m.go +++ b/orm/orm_querym2m.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_queryset.go b/orm/orm_queryset.go index 6d2dd418..c6e8f19d 100644 --- a/orm/orm_queryset.go +++ b/orm/orm_queryset.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_raw.go b/orm/orm_raw.go index ea701cce..373aaf1b 100644 --- a/orm/orm_raw.go +++ b/orm/orm_raw.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/orm_test.go b/orm/orm_test.go index 5859f426..016e103b 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/types.go b/orm/types.go index 0f1b37ba..77585570 100644 --- a/orm/types.go +++ b/orm/types.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/orm/utils.go b/orm/utils.go index e53042d9..d2326fc1 100644 --- a/orm/utils.go +++ b/orm/utils.go @@ -1,8 +1,12 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors slene + +// @authors astaxie, slene package orm diff --git a/parser.go b/parser.go index 5b2cd616..7e8f2046 100644 --- a/parser.go +++ b/parser.go @@ -1,8 +1,13 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie + package beego import ( diff --git a/plugins/auth/basic.go b/plugins/auth/basic.go index a74bcf22..16aea240 100644 --- a/plugins/auth/basic.go +++ b/plugins/auth/basic.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package auth @@ -14,7 +18,7 @@ package auth // return false // } // authPlugin := auth.NewBasicAuthenticator(SecretAuth, "My Realm") -// beego.AddFilter("*","AfterStatic",authPlugin) +// beego.InsertFilter("*", beego.BeforeRouter,authPlugin) import ( "encoding/base64" diff --git a/router.go b/router.go index 0041c273..c6900473 100644 --- a/router.go +++ b/router.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/router_test.go b/router_test.go index b80000f4..e96a1403 100644 --- a/router_test.go +++ b/router_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/session/couchbase/sess_couchbase.go b/session/couchbase/sess_couchbase.go index 9f68b946..b033d67e 100644 --- a/session/couchbase/sess_couchbase.go +++ b/session/couchbase/sess_couchbase.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/memcache/sess_memcache.go b/session/memcache/sess_memcache.go index fa8fa165..1558e239 100644 --- a/session/memcache/sess_memcache.go +++ b/session/memcache/sess_memcache.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/mysql/sess_mysql.go b/session/mysql/sess_mysql.go index 530ca158..dc0d1506 100644 --- a/session/mysql/sess_mysql.go +++ b/session/mysql/sess_mysql.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/postgres/sess_postgresql.go b/session/postgres/sess_postgresql.go index 7f905997..4e3aca75 100644 --- a/session/postgres/sess_postgresql.go +++ b/session/postgres/sess_postgresql.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/redis/sess_redis.go b/session/redis/sess_redis.go index 3ad19792..0d7032f1 100644 --- a/session/redis/sess_redis.go +++ b/session/redis/sess_redis.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_cookie.go b/session/sess_cookie.go index 1a06add6..5a75e402 100644 --- a/session/sess_cookie.go +++ b/session/sess_cookie.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_cookie_test.go b/session/sess_cookie_test.go index 9ab321f5..475b836b 100644 --- a/session/sess_cookie_test.go +++ b/session/sess_cookie_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_file.go b/session/sess_file.go index 74b71223..38bfa95b 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_mem.go b/session/sess_mem.go index e440b2f5..676d6058 100644 --- a/session/sess_mem.go +++ b/session/sess_mem.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_mem_test.go b/session/sess_mem_test.go index 5e54c634..79684953 100644 --- a/session/sess_mem_test.go +++ b/session/sess_mem_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_test.go b/session/sess_test.go index 1db55a64..535f0c4c 100644 --- a/session/sess_test.go +++ b/session/sess_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/sess_utils.go b/session/sess_utils.go index b9a965c3..cdf0e99b 100644 --- a/session/sess_utils.go +++ b/session/sess_utils.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/session/session.go b/session/session.go index eb9162b8..c4b281b7 100644 --- a/session/session.go +++ b/session/session.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package session diff --git a/staticfile.go b/staticfile.go index 09f3018f..d74aa223 100644 --- a/staticfile.go +++ b/staticfile.go @@ -1,9 +1,12 @@ // Beego (http://beego.me/) -// @description beego is an open-source, high-performance web framework for the Go programming language. -// @link http://github.com/astaxie/beego for the canonical source repository -// @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors astaxie +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie package beego import ( diff --git a/swagger/docsSpec.go b/swagger/docsSpec.go index 94ff75ef..23149a20 100644 --- a/swagger/docsSpec.go +++ b/swagger/docsSpec.go @@ -1,3 +1,13 @@ +// Beego (http://beego.me/) + +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie + package swagger const SwaggerVersion = "1.2" diff --git a/template.go b/template.go index 9411930c..ad1902d2 100644 --- a/template.go +++ b/template.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/template_test.go b/template_test.go index 15014980..fc2a90a0 100644 --- a/template_test.go +++ b/template_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/templatefunc.go b/templatefunc.go index ef7658d6..84624d2e 100644 --- a/templatefunc.go +++ b/templatefunc.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego @@ -37,23 +41,20 @@ func Substr(s string, start, length int) string { func Html2str(html string) string { src := string(html) - //将HTML标签全转换成小写 re, _ := regexp.Compile("\\<[\\S\\s]+?\\>") src = re.ReplaceAllStringFunc(src, strings.ToLower) - //去除STYLE + //remove STYLE re, _ = regexp.Compile("\\") src = re.ReplaceAllString(src, "") - //去除SCRIPT + //remove SCRIPT re, _ = regexp.Compile("\\") src = re.ReplaceAllString(src, "") - //去除所有尖括号内的HTML代码,并换成换行符 re, _ = regexp.Compile("\\<[\\S\\s]+?\\>") src = re.ReplaceAllString(src, "\n") - //去除连续的换行符 re, _ = regexp.Compile("\\s{2,}") src = re.ReplaceAllString(src, "\n") diff --git a/templatefunc_test.go b/templatefunc_test.go index 8a450408..c3879fbb 100644 --- a/templatefunc_test.go +++ b/templatefunc_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package beego diff --git a/testing/client.go b/testing/client.go index a4408681..a185da55 100644 --- a/testing/client.go +++ b/testing/client.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package testing diff --git a/toolbox/debug.go b/toolbox/debug.go index dd775e69..614a673d 100644 --- a/toolbox/debug.go +++ b/toolbox/debug.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/debug_test.go b/toolbox/debug_test.go index 4ef89983..290bed7c 100644 --- a/toolbox/debug_test.go +++ b/toolbox/debug_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/healthcheck.go b/toolbox/healthcheck.go index 0f4c0e29..4332586f 100644 --- a/toolbox/healthcheck.go +++ b/toolbox/healthcheck.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/profile.go b/toolbox/profile.go index 3200d547..a3588ac3 100644 --- a/toolbox/profile.go +++ b/toolbox/profile.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/profile_test.go b/toolbox/profile_test.go index 661d6ea1..1a3345e8 100644 --- a/toolbox/profile_test.go +++ b/toolbox/profile_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/statistics.go b/toolbox/statistics.go index 8904dc60..74632ee3 100644 --- a/toolbox/statistics.go +++ b/toolbox/statistics.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/statistics_test.go b/toolbox/statistics_test.go index ec7ceab5..1fb99b76 100644 --- a/toolbox/statistics_test.go +++ b/toolbox/statistics_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/task.go b/toolbox/task.go index dadc8913..81fdf110 100644 --- a/toolbox/task.go +++ b/toolbox/task.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/toolbox/task_test.go b/toolbox/task_test.go index 2bbd4ac7..0a9f50ad 100644 --- a/toolbox/task_test.go +++ b/toolbox/task_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package toolbox diff --git a/tree.go b/tree.go index 93d4ab02..9d464225 100644 --- a/tree.go +++ b/tree.go @@ -1,3 +1,13 @@ +// Beego (http://beego.me/) + +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie + package beego import ( diff --git a/tree_test.go b/tree_test.go index 57f0a9fd..69da718a 100644 --- a/tree_test.go +++ b/tree_test.go @@ -1,3 +1,13 @@ +// Beego (http://beego.me/) + +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie + package beego import "testing" diff --git a/utils/caller.go b/utils/caller.go index 52cd5fe4..3ba9e94f 100644 --- a/utils/caller.go +++ b/utils/caller.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/caller_test.go b/utils/caller_test.go index c7068f3c..13b289e0 100644 --- a/utils/caller_test.go +++ b/utils/caller_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/captcha/captcha.go b/utils/captcha/captcha.go index 133a2fe2..80c7e77d 100644 --- a/utils/captcha/captcha.go +++ b/utils/captcha/captcha.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie // an example for use captcha diff --git a/utils/captcha/image.go b/utils/captcha/image.go index 93eb3383..6abfc0a4 100644 --- a/utils/captcha/image.go +++ b/utils/captcha/image.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package captcha diff --git a/utils/captcha/image_test.go b/utils/captcha/image_test.go index 14a18fbc..09c119c5 100644 --- a/utils/captcha/image_test.go +++ b/utils/captcha/image_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package captcha diff --git a/utils/captcha/siprng.go b/utils/captcha/siprng.go index 26651b9b..4afca3bf 100644 --- a/utils/captcha/siprng.go +++ b/utils/captcha/siprng.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package captcha diff --git a/utils/captcha/siprng_test.go b/utils/captcha/siprng_test.go index 8f3444b4..54b5d5be 100644 --- a/utils/captcha/siprng_test.go +++ b/utils/captcha/siprng_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package captcha diff --git a/utils/file.go b/utils/file.go index 5246d88c..aead5e7b 100644 --- a/utils/file.go +++ b/utils/file.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/file_test.go b/utils/file_test.go index 8dfd1ff6..5c72b040 100644 --- a/utils/file_test.go +++ b/utils/file_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/mail.go b/utils/mail.go index 8eb97b1a..d8f79f26 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/mail_test.go b/utils/mail_test.go index 109bf7ba..84660a8e 100644 --- a/utils/mail_test.go +++ b/utils/mail_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/rand.go b/utils/rand.go index 363f41b7..d521dfab 100644 --- a/utils/rand.go +++ b/utils/rand.go @@ -1,9 +1,12 @@ // Beego (http://beego.me/) -// @description beego is an open-source, high-performance web framework for the Go programming language. -// @link http://github.com/astaxie/beego for the canonical source repository -// @license http://github.com/astaxie/beego/blob/master/LICENSE -// @authors astaxie +// @description beego is an open-source, high-performance web framework for the Go programming language. + +// @link http://github.com/astaxie/beego for the canonical source repository + +// @license http://github.com/astaxie/beego/blob/master/LICENSE + +// @authors astaxie package utils import ( diff --git a/utils/safemap.go b/utils/safemap.go index 35bf695b..2df14a53 100644 --- a/utils/safemap.go +++ b/utils/safemap.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/safemap_test.go b/utils/safemap_test.go index e1148a1c..6c2da5bd 100644 --- a/utils/safemap_test.go +++ b/utils/safemap_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/slice.go b/utils/slice.go index fee1b741..786f47a9 100644 --- a/utils/slice.go +++ b/utils/slice.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/utils/slice_test.go b/utils/slice_test.go index fb2266a0..fb9c1d1d 100644 --- a/utils/slice_test.go +++ b/utils/slice_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package utils diff --git a/validation/util.go b/validation/util.go index 3ac56f81..e8ca8a1c 100644 --- a/validation/util.go +++ b/validation/util.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package validation diff --git a/validation/util_test.go b/validation/util_test.go index 8345daa6..bcd0c0e5 100644 --- a/validation/util_test.go +++ b/validation/util_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package validation diff --git a/validation/validation.go b/validation/validation.go index 7087ccff..477676a7 100644 --- a/validation/validation.go +++ b/validation/validation.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package validation diff --git a/validation/validation_test.go b/validation/validation_test.go index 47de304a..d43a5938 100644 --- a/validation/validation_test.go +++ b/validation/validation_test.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package validation diff --git a/validation/validators.go b/validation/validators.go index d59b42b0..5cab1c0f 100644 --- a/validation/validators.go +++ b/validation/validators.go @@ -1,7 +1,11 @@ // Beego (http://beego.me/) + // @description beego is an open-source, high-performance web framework for the Go programming language. + // @link http://github.com/astaxie/beego for the canonical source repository + // @license http://github.com/astaxie/beego/blob/master/LICENSE + // @authors astaxie package validation