diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000..5dbd424355 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2014 astaxie + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/admin.go b/admin.go index 3a0d782a3b..e1dd2743fe 100644 --- a/admin.go +++ b/admin.go @@ -1,3 +1,9 @@ +// 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/app.go b/app.go index 80d8d575c5..1bb36c4d43 100644 --- a/app.go +++ b/app.go @@ -1,3 +1,9 @@ +// 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/beego.go b/beego.go index 32bfe5e470..c09455d5be 100644 --- a/beego.go +++ b/beego.go @@ -1,4 +1,9 @@ -// beego is an open-source, high-performance web framework for the Go programming language +// 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/cache/cache.go b/cache/cache.go index 244f9d38ab..3273e2f9d5 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/cache_test.go b/cache/cache_test.go index 52612cfdca..263ad25732 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/conv.go b/cache/conv.go index 818dc0c77f..00cbdd2458 100644 --- a/cache/conv.go +++ b/cache/conv.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/conv_test.go b/cache/conv_test.go index 9024628259..82d73af766 100644 --- a/cache/conv_test.go +++ b/cache/conv_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/file.go b/cache/file.go index d750fecc73..7178aa2047 100644 --- a/cache/file.go +++ b/cache/file.go @@ -1,8 +1,9 @@ -/** - * package: file - * User: gouki - * Date: 2013-10-22 - 14:22 - */ +// 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 import ( diff --git a/cache/memcache/memcache.go b/cache/memcache/memcache.go index bd5ab26944..7eea77c879 100644 --- a/cache/memcache/memcache.go +++ b/cache/memcache/memcache.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/memory.go b/cache/memory.go index e1284b79a5..2d2f380320 100644 --- a/cache/memory.go +++ b/cache/memory.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/cache/redis/redis.go b/cache/redis/redis.go index 71c7d67eb8..451166a3f0 100644 --- a/cache/redis/redis.go +++ b/cache/redis/redis.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config.go b/config.go index 9b7227121a..2a1589f75c 100644 --- a/config.go +++ b/config.go @@ -1,3 +1,9 @@ +// 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/config/config.go b/config/config.go index 5e4c2e9c46..7446abb4a8 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/fake.go b/config/fake.go index 26a9f4301b..ece4f696b5 100644 --- a/config/fake.go +++ b/config/fake.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/ini.go b/config/ini.go index 75e6486c49..0593864a56 100644 --- a/config/ini.go +++ b/config/ini.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/ini_test.go b/config/ini_test.go index 08a69e500c..3e792ded1c 100644 --- a/config/ini_test.go +++ b/config/ini_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/json.go b/config/json.go index 3e3d1d3584..a24f9dd601 100644 --- a/config/json.go +++ b/config/json.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/json_test.go b/config/json_test.go index e27f693267..4e83470f2d 100644 --- a/config/json_test.go +++ b/config/json_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/xml/xml.go b/config/xml/xml.go index 7943d8fe5c..5028cd45db 100644 --- a/config/xml/xml.go +++ b/config/xml/xml.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/xml/xml_test.go b/config/xml/xml_test.go index 1e429e0629..49f49ea25d 100644 --- a/config/xml/xml_test.go +++ b/config/xml/xml_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/yaml/yaml.go b/config/yaml/yaml.go index bd10b84682..65008565d9 100644 --- a/config/yaml/yaml.go +++ b/config/yaml/yaml.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config/yaml/yaml_test.go b/config/yaml/yaml_test.go index 51165e7b01..bdcc6d420c 100644 --- a/config/yaml/yaml_test.go +++ b/config/yaml/yaml_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/config_test.go b/config_test.go index d400fd5d61..19eaeacf30 100644 --- a/config_test.go +++ b/config_test.go @@ -1,3 +1,9 @@ +// 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/context/context.go b/context/context.go index 36d566b5d6..87986bec1a 100644 --- a/context/context.go +++ b/context/context.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/context/input.go b/context/input.go index 01ab9f3e1d..8d9b76e65a 100644 --- a/context/input.go +++ b/context/input.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/context/input_test.go b/context/input_test.go index 26e95982f6..f53d013d7b 100644 --- a/context/input_test.go +++ b/context/input_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/context/output.go b/context/output.go index 2d7814e40a..06b3d7177b 100644 --- a/context/output.go +++ b/context/output.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/controller.go b/controller.go index 34b7febd87..4dd6709ae3 100644 --- a/controller.go +++ b/controller.go @@ -1,3 +1,9 @@ +// 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/controllers/default.go b/example/beeapi/controllers/default.go index 88903b4bb7..c6e53e7421 100644 --- a/example/beeapi/controllers/default.go +++ b/example/beeapi/controllers/default.go @@ -1,7 +1,14 @@ +// 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 controllers import ( "encoding/json" + "github.com/astaxie/beego" "github.com/astaxie/beego/example/beeapi/models" ) diff --git a/example/beeapi/main.go b/example/beeapi/main.go index aef0fb357a..bed06196c7 100644 --- a/example/beeapi/main.go +++ b/example/beeapi/main.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/example/beeapi/models/object.go b/example/beeapi/models/object.go index 2c72e6b6ee..46109c50f1 100644 --- a/example/beeapi/models/object.go +++ b/example/beeapi/models/object.go @@ -1,3 +1,9 @@ +// 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 models import ( diff --git a/example/chat/controllers/default.go b/example/chat/controllers/default.go index d53bd33753..370e6db12d 100644 --- a/example/chat/controllers/default.go +++ b/example/chat/controllers/default.go @@ -1,3 +1,9 @@ +// 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 Unknwon + package controllers import ( diff --git a/example/chat/controllers/ws.go b/example/chat/controllers/ws.go index 9b3f5b108f..883bf323e9 100644 --- a/example/chat/controllers/ws.go +++ b/example/chat/controllers/ws.go @@ -1,3 +1,9 @@ +// 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 Unknwon + package controllers import ( diff --git a/example/chat/main.go b/example/chat/main.go index 806fe14593..be055b257c 100644 --- a/example/chat/main.go +++ b/example/chat/main.go @@ -1,3 +1,8 @@ +// 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 Unknwon package main import ( diff --git a/filter.go b/filter.go index 98868865dc..8fcd8c825d 100644 --- a/filter.go +++ b/filter.go @@ -1,3 +1,9 @@ +// 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/fiter_test.go b/fiter_test.go index 7fe9a6413f..a8573c3491 100644 --- a/fiter_test.go +++ b/fiter_test.go @@ -1,3 +1,9 @@ +// 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/flash.go b/flash.go index 8adb004bee..a67ee5c847 100644 --- a/flash.go +++ b/flash.go @@ -1,3 +1,9 @@ +// 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/flash_test.go b/flash_test.go index d329bae46e..40eddabb66 100644 --- a/flash_test.go +++ b/flash_test.go @@ -1,3 +1,9 @@ +// 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/httplib/httplib.go b/httplib/httplib.go index d313c6032d..6dcc1a5ece 100644 --- a/httplib/httplib.go +++ b/httplib/httplib.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/httplib/httplib_test.go b/httplib/httplib_test.go index cc56dd8812..a0d9d0db4b 100644 --- a/httplib/httplib_test.go +++ b/httplib/httplib_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/log.go b/log.go index f374085ef5..ac72ec3437 100644 --- a/log.go +++ b/log.go @@ -1,3 +1,9 @@ +// 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/logs/conn.go b/logs/conn.go index eed9ae2f3a..588e73f4c1 100644 --- a/logs/conn.go +++ b/logs/conn.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/conn_test.go b/logs/conn_test.go index 0d55ddd8ce..e05cbe05e3 100644 --- a/logs/conn_test.go +++ b/logs/conn_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/console.go b/logs/console.go index 6af6aa164a..9316a55eb5 100644 --- a/logs/console.go +++ b/logs/console.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/console_test.go b/logs/console_test.go index 041927ca79..a8c942c107 100644 --- a/logs/console_test.go +++ b/logs/console_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/file.go b/logs/file.go index 4c56033024..f5cbb9ffe5 100644 --- a/logs/file.go +++ b/logs/file.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/file_test.go b/logs/file_test.go index 8f50276da3..90349ec61e 100644 --- a/logs/file_test.go +++ b/logs/file_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/log.go b/logs/log.go index 025da55ca2..423f9ec312 100644 --- a/logs/log.go +++ b/logs/log.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/smtp.go b/logs/smtp.go index 19296887e5..2b9e50a0c4 100644 --- a/logs/smtp.go +++ b/logs/smtp.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/logs/smtp_test.go b/logs/smtp_test.go index ae4dd0195e..cb8d30095f 100644 --- a/logs/smtp_test.go +++ b/logs/smtp_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/memzipfile.go b/memzipfile.go index 50c3205fd4..92d6003acf 100644 --- a/memzipfile.go +++ b/memzipfile.go @@ -1,3 +1,9 @@ +// 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/middleware/error.go b/middleware/error.go index 3f973eb02d..3aff9a80b7 100644 --- a/middleware/error.go +++ b/middleware/error.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/middleware/exceptions.go b/middleware/exceptions.go index b221dfcb36..09cb46cb5f 100644 --- a/middleware/exceptions.go +++ b/middleware/exceptions.go @@ -1,3 +1,9 @@ +// 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 import "fmt" diff --git a/middleware/i18n.go b/middleware/i18n.go index 973a4a6f15..10ec12bb0d 100644 --- a/middleware/i18n.go +++ b/middleware/i18n.go @@ -1,3 +1,9 @@ +// 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 //import ( diff --git a/mime.go b/mime.go index 97ed244995..f611a16e00 100644 --- a/mime.go +++ b/mime.go @@ -1,3 +1,9 @@ +// 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/orm/cmd.go b/orm/cmd.go index 95be7f4a0b..ecfc3bd510 100644 --- a/orm/cmd.go +++ b/orm/cmd.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index 8f6d94dbaf..63cc5a64e4 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db.go b/orm/db.go index e84062e85c..b67a9bd57e 100644 --- a/orm/db.go +++ b/orm/db.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_alias.go b/orm/db_alias.go index 6a6623cc44..f9d0ab5aec 100644 --- a/orm/db_alias.go +++ b/orm/db_alias.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_mysql.go b/orm/db_mysql.go index 566f29924b..33a01ba475 100644 --- a/orm/db_mysql.go +++ b/orm/db_mysql.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_oracle.go b/orm/db_oracle.go index 8e374122e1..d2253758e1 100644 --- a/orm/db_oracle.go +++ b/orm/db_oracle.go @@ -1,3 +1,9 @@ +// 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 + package orm // oracle dbBaser diff --git a/orm/db_postgres.go b/orm/db_postgres.go index d26511c0da..463150dc98 100644 --- a/orm/db_postgres.go +++ b/orm/db_postgres.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_sqlite.go b/orm/db_sqlite.go index 81692e2c7f..94c74a6953 100644 --- a/orm/db_sqlite.go +++ b/orm/db_sqlite.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_tables.go b/orm/db_tables.go index 854c42146d..690b4eaa90 100644 --- a/orm/db_tables.go +++ b/orm/db_tables.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/db_utils.go b/orm/db_utils.go index da7c99761d..8f963f5e07 100644 --- a/orm/db_utils.go +++ b/orm/db_utils.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models.go b/orm/models.go index 59a8a8a178..ff71ee6230 100644 --- a/orm/models.go +++ b/orm/models.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_boot.go b/orm/models_boot.go index 03caeb6275..0b8db512ae 100644 --- a/orm/models_boot.go +++ b/orm/models_boot.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_fields.go b/orm/models_fields.go index 03d714fcf5..c1c9b7e2ae 100644 --- a/orm/models_fields.go +++ b/orm/models_fields.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_info_f.go b/orm/models_info_f.go index fadbb3354c..8ec2bbeb56 100644 --- a/orm/models_info_f.go +++ b/orm/models_info_f.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_info_m.go b/orm/models_info_m.go index 4308c962a6..265c637963 100644 --- a/orm/models_info_m.go +++ b/orm/models_info_m.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_test.go b/orm/models_test.go index 7f8457215b..785088becb 100644 --- a/orm/models_test.go +++ b/orm/models_test.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/models_utils.go b/orm/models_utils.go index d8d7cc2594..c448c55eeb 100644 --- a/orm/models_utils.go +++ b/orm/models_utils.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm.go b/orm/orm.go index 920d7f403f..5503256e48 100644 --- a/orm/orm.go +++ b/orm/orm.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_conds.go b/orm/orm_conds.go index 5b1151e274..4b0cfa6589 100644 --- a/orm/orm_conds.go +++ b/orm/orm_conds.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_log.go b/orm/orm_log.go index e6df797a0a..e132992d01 100644 --- a/orm/orm_log.go +++ b/orm/orm_log.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_object.go b/orm/orm_object.go index fa6443492c..44d4aebcda 100644 --- a/orm/orm_object.go +++ b/orm/orm_object.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_querym2m.go b/orm/orm_querym2m.go index f0bc94b7fb..370de60d8e 100644 --- a/orm/orm_querym2m.go +++ b/orm/orm_querym2m.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_queryset.go b/orm/orm_queryset.go index f21da55278..6d2dd4183d 100644 --- a/orm/orm_queryset.go +++ b/orm/orm_queryset.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_raw.go b/orm/orm_raw.go index a968e3478e..ea701cce73 100644 --- a/orm/orm_raw.go +++ b/orm/orm_raw.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/orm_test.go b/orm/orm_test.go index 3ae5bc12e3..5859f42625 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/types.go b/orm/types.go index 4361c62ce9..0f1b37ba9c 100644 --- a/orm/types.go +++ b/orm/types.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/orm/utils.go b/orm/utils.go index 26df5a3fbe..e53042d95c 100644 --- a/orm/utils.go +++ b/orm/utils.go @@ -1,3 +1,9 @@ +// 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 + package orm import ( diff --git a/plugins/auth/basic.go b/plugins/auth/basic.go index 5838acc2ef..a74bcf2208 100644 --- a/plugins/auth/basic.go +++ b/plugins/auth/basic.go @@ -1,4 +1,9 @@ -// basic auth for plugin +// 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 // Example: diff --git a/reload.go b/reload.go index 7a43e0ed74..fc4d3f9f2c 100644 --- a/reload.go +++ b/reload.go @@ -1,3 +1,9 @@ +// 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/router.go b/router.go index fe749ea5ef..fa88a153f0 100644 --- a/router.go +++ b/router.go @@ -1,3 +1,9 @@ +// 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/router_test.go b/router_test.go index 2f500835ee..810177cf7e 100644 --- a/router_test.go +++ b/router_test.go @@ -1,3 +1,9 @@ +// 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/session/couchbase/sess_couchbase.go b/session/couchbase/sess_couchbase.go index cab1c2fe4f..9f68b94630 100644 --- a/session/couchbase/sess_couchbase.go +++ b/session/couchbase/sess_couchbase.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/mysql/sess_mysql.go b/session/mysql/sess_mysql.go index 26c0b6477c..530ca158ec 100644 --- a/session/mysql/sess_mysql.go +++ b/session/mysql/sess_mysql.go @@ -1,3 +1,9 @@ +// 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 // mysql session support need create table as sql: diff --git a/session/postgres/sess_postgresql.go b/session/postgres/sess_postgresql.go index 68030df274..7f905997d1 100644 --- a/session/postgres/sess_postgresql.go +++ b/session/postgres/sess_postgresql.go @@ -1,3 +1,9 @@ +// 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 a1c0e94f23..3ad197925c 100644 --- a/session/redis/sess_redis.go +++ b/session/redis/sess_redis.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_cookie.go b/session/sess_cookie.go index 67a0802d7b..1a06add64d 100644 --- a/session/sess_cookie.go +++ b/session/sess_cookie.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_cookie_test.go b/session/sess_cookie_test.go index 154c15a2e4..9ab321f595 100644 --- a/session/sess_cookie_test.go +++ b/session/sess_cookie_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_file.go b/session/sess_file.go index 618ba36630..74b7122343 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_mem.go b/session/sess_mem.go index 7a2bd0ad20..e440b2f5e5 100644 --- a/session/sess_mem.go +++ b/session/sess_mem.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_mem_test.go b/session/sess_mem_test.go index df2a9a1e65..5e54c634b1 100644 --- a/session/sess_mem_test.go +++ b/session/sess_mem_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_test.go b/session/sess_test.go index b903dca612..179478622b 100644 --- a/session/sess_test.go +++ b/session/sess_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/sess_utils.go b/session/sess_utils.go index bfa17a7f73..a9cce75a33 100644 --- a/session/sess_utils.go +++ b/session/sess_utils.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/session/session.go b/session/session.go index 7da0d41f3f..3609c10b69 100644 --- a/session/session.go +++ b/session/session.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/staticfile.go b/staticfile.go index e140ed3861..c53d17a45f 100644 --- a/staticfile.go +++ b/staticfile.go @@ -1,3 +1,9 @@ +// 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/template.go b/template.go index eb8d0c5daf..95deb4437e 100644 --- a/template.go +++ b/template.go @@ -1,3 +1,9 @@ +// 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 //@todo add template funcs diff --git a/template_test.go b/template_test.go index 8da15d0e23..1501498000 100644 --- a/template_test.go +++ b/template_test.go @@ -1,3 +1,9 @@ +// 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/templatefunc.go b/templatefunc.go index 1eb40c0f34..c7bd9238bb 100644 --- a/templatefunc.go +++ b/templatefunc.go @@ -1,3 +1,9 @@ +// 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/templatefunc_test.go b/templatefunc_test.go index 726ce2d2f5..aa1ba1ed8d 100644 --- a/templatefunc_test.go +++ b/templatefunc_test.go @@ -1,3 +1,9 @@ +// 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/testing/client.go b/testing/client.go index 28ad9a7dea..a4408681bd 100644 --- a/testing/client.go +++ b/testing/client.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/debug.go b/toolbox/debug.go index 86638d05e5..dd775e69e0 100644 --- a/toolbox/debug.go +++ b/toolbox/debug.go @@ -1,4 +1,9 @@ -// Here are the features: healthcheck, profile, statistics and task. +// 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 import ( diff --git a/toolbox/debug_test.go b/toolbox/debug_test.go index d72b8b7b9d..4ef8998372 100644 --- a/toolbox/debug_test.go +++ b/toolbox/debug_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/healthcheck.go b/toolbox/healthcheck.go index 1540c7c757..0f4c0e2993 100644 --- a/toolbox/healthcheck.go +++ b/toolbox/healthcheck.go @@ -1,3 +1,9 @@ +// 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 //type DatabaseCheck struct { diff --git a/toolbox/profile.go b/toolbox/profile.go index ff8710b66d..3200d547f5 100644 --- a/toolbox/profile.go +++ b/toolbox/profile.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/profile_test.go b/toolbox/profile_test.go index ea1135a72b..661d6ea1c1 100644 --- a/toolbox/profile_test.go +++ b/toolbox/profile_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/statistics.go b/toolbox/statistics.go index 6042197ebe..8904dc6075 100644 --- a/toolbox/statistics.go +++ b/toolbox/statistics.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/statistics_test.go b/toolbox/statistics_test.go index ca4bffffc1..ec7ceab544 100644 --- a/toolbox/statistics_test.go +++ b/toolbox/statistics_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/task.go b/toolbox/task.go index b5558c1578..dadc8913e4 100644 --- a/toolbox/task.go +++ b/toolbox/task.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/toolbox/task_test.go b/toolbox/task_test.go index d61a259591..2bbd4ac791 100644 --- a/toolbox/task_test.go +++ b/toolbox/task_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/caller.go b/utils/caller.go index 5cf45ed97e..52cd5fe401 100644 --- a/utils/caller.go +++ b/utils/caller.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/caller_test.go b/utils/caller_test.go index 1a7e9c7553..c7068f3c4a 100644 --- a/utils/caller_test.go +++ b/utils/caller_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/captcha/captcha.go b/utils/captcha/captcha.go index f3998733a6..f12634d50b 100644 --- a/utils/captcha/captcha.go +++ b/utils/captcha/captcha.go @@ -1,3 +1,9 @@ +// 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 31c66a3692..93eb3383a7 100644 --- a/utils/captcha/image.go +++ b/utils/captcha/image.go @@ -1,4 +1,9 @@ -// modifiy and integrated to Beego from https://github.com/dchest/captcha +// 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 import ( diff --git a/utils/captcha/image_test.go b/utils/captcha/image_test.go index e80cc42c4f..14a18fbcbd 100644 --- a/utils/captcha/image_test.go +++ b/utils/captcha/image_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/captcha/siprng.go b/utils/captcha/siprng.go index 6f9274d83a..26651b9b98 100644 --- a/utils/captcha/siprng.go +++ b/utils/captcha/siprng.go @@ -1,4 +1,9 @@ -// modifiy and integrated to Beego from https://github.com/dchest/captcha +// 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 import ( diff --git a/utils/captcha/siprng_test.go b/utils/captcha/siprng_test.go index 2fb81f7e0e..8f3444b4fb 100644 --- a/utils/captcha/siprng_test.go +++ b/utils/captcha/siprng_test.go @@ -1,3 +1,9 @@ +// 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 import "testing" diff --git a/utils/file.go b/utils/file.go index c0137cb5c8..0f08045ba0 100644 --- a/utils/file.go +++ b/utils/file.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/file_test.go b/utils/file_test.go index c183484b99..8dfd1ff680 100644 --- a/utils/file_test.go +++ b/utils/file_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/mail.go b/utils/mail.go index 828b790c3d..8eb97b1a11 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/mail_test.go b/utils/mail_test.go index c0535ed51c..109bf7ba4c 100644 --- a/utils/mail_test.go +++ b/utils/mail_test.go @@ -1,3 +1,9 @@ +// 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 import "testing" diff --git a/utils/rand.go b/utils/rand.go index 482c7059ba..d9629e60bc 100644 --- a/utils/rand.go +++ b/utils/rand.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/safemap.go b/utils/safemap.go index 30cccefff5..35bf695bd7 100644 --- a/utils/safemap.go +++ b/utils/safemap.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/safemap_test.go b/utils/safemap_test.go index 8e4eab4803..e1148a1c0a 100644 --- a/utils/safemap_test.go +++ b/utils/safemap_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/slice.go b/utils/slice.go index fd3d5166e8..fee1b7415e 100644 --- a/utils/slice.go +++ b/utils/slice.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/utils/slice_test.go b/utils/slice_test.go index d06a94a62f..fb2266a030 100644 --- a/utils/slice_test.go +++ b/utils/slice_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/validation/util.go b/validation/util.go index a157742ddf..3ac56f810d 100644 --- a/validation/util.go +++ b/validation/util.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/validation/util_test.go b/validation/util_test.go index e33025c24e..8345daa624 100644 --- a/validation/util_test.go +++ b/validation/util_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/validation/validation.go b/validation/validation.go index a22e8bff61..7087ccff8f 100644 --- a/validation/validation.go +++ b/validation/validation.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/validation/validation_test.go b/validation/validation_test.go index de9aa21a91..47de304aca 100644 --- a/validation/validation_test.go +++ b/validation/validation_test.go @@ -1,3 +1,9 @@ +// 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 import ( diff --git a/validation/validators.go b/validation/validators.go index 631e0f3892..d59b42b0a6 100644 --- a/validation/validators.go +++ b/validation/validators.go @@ -1,3 +1,9 @@ +// 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 import (