Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
90d13496
Commit
90d13496
authored
Jan 17, 2016
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo
parent
9b2597be
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
11 deletions
+11
-11
json.go
config/json.go
+1
-1
doc.go
doc.go
+1
-1
orm_conds.go
orm/orm_conds.go
+1
-1
qb_mysql.go
orm/qb_mysql.go
+1
-1
apiauth.go
plugins/apiauth/apiauth.go
+1
-1
sess_cookie_test.go
session/sess_cookie_test.go
+2
-2
template.go
template.go
+1
-1
templatefunc.go
templatefunc.go
+1
-1
captcha.go
utils/captcha/captcha.go
+2
-2
No files found.
config/json.go
View file @
90d13496
...
...
@@ -164,7 +164,7 @@ func (c *JSONConfigContainer) String(key string) string {
// DefaultString returns the string value for a given key.
// if err != nil return defaltval
func
(
c
*
JSONConfigContainer
)
DefaultString
(
key
string
,
defaultval
string
)
string
{
// TODO FIXME should not use "" to replace non exist
a
nce
// TODO FIXME should not use "" to replace non exist
e
nce
if
v
:=
c
.
String
(
key
);
v
!=
""
{
return
v
}
...
...
doc.go
View file @
90d13496
...
...
@@ -12,6 +12,6 @@ beego is inspired by Tornado, Sinatra and Flask with the added benefit of some G
beego.Run()
}
more infomation: http://beego.me
more info
r
mation: http://beego.me
*/
package
beego
orm/orm_conds.go
View file @
90d13496
...
...
@@ -19,7 +19,7 @@ import (
"strings"
)
// ExprSep define the expression sep
e
ration
// ExprSep define the expression sep
a
ration
const
(
ExprSep
=
"__"
)
...
...
orm/qb_mysql.go
View file @
90d13496
...
...
@@ -20,7 +20,7 @@ import (
"strings"
)
// CommaSpace is the sep
e
ration
// CommaSpace is the sep
a
ration
const
CommaSpace
=
", "
// MySQLQueryBuilder is the SQL build
...
...
plugins/apiauth/apiauth.go
View file @
90d13496
...
...
@@ -41,7 +41,7 @@
//
// 1. appid
//
// appid is asigned to the application
// appid is as
s
igned to the application
//
// 2. signature
//
...
...
session/sess_cookie_test.go
View file @
90d13496
...
...
@@ -80,7 +80,7 @@ func TestDestorySessionCookie(t *testing.T) {
t
.
Fatal
(
"get cookie session id is not the same again."
)
}
// After dest
or
y session , will get a new session id .
// After dest
ro
y session , will get a new session id .
globalSessions
.
SessionDestroy
(
w
,
r1
)
r2
,
_
:=
http
.
NewRequest
(
"GET"
,
"/"
,
nil
)
r2
.
Header
.
Set
(
"Cookie"
,
w
.
Header
()
.
Get
(
"Set-Cookie"
))
...
...
@@ -91,6 +91,6 @@ func TestDestorySessionCookie(t *testing.T) {
t
.
Fatal
(
"session start error"
)
}
if
newSession
.
SessionID
()
==
session
.
SessionID
()
{
t
.
Fatal
(
"after dest
or
y session and reqeust again ,get cookie session id is same."
)
t
.
Fatal
(
"after dest
ro
y session and reqeust again ,get cookie session id is same."
)
}
}
template.go
View file @
90d13496
...
...
@@ -31,7 +31,7 @@ var (
beegoTplFuncMap
=
make
(
template
.
FuncMap
)
// BeeTemplates caching map and supported template file extensions.
BeeTemplates
=
make
(
map
[
string
]
*
template
.
Template
)
// BeeTemplateExt stores the template exten
t
ion which will build
// BeeTemplateExt stores the template exten
s
ion which will build
BeeTemplateExt
=
[]
string
{
"tpl"
,
"html"
}
)
...
...
templatefunc.go
View file @
90d13496
...
...
@@ -670,7 +670,7 @@ func MapGet(arg1 interface{}, arg2 ...interface{}) (interface{}, error) {
if
arg1Type
.
Kind
()
==
reflect
.
Map
&&
len
(
arg2
)
>
0
{
// check whether arg2[0] type equals to arg1 key type
// if they are different, make conver
t
ion
// if they are different, make conver
s
ion
arg2Val
:=
reflect
.
ValueOf
(
arg2
[
0
])
arg2Type
:=
reflect
.
TypeOf
(
arg2
[
0
])
if
arg2Type
.
Kind
()
!=
arg1Type
.
Key
()
.
Kind
()
{
...
...
utils/captcha/captcha.go
View file @
90d13496
...
...
@@ -158,7 +158,7 @@ func (c *Captcha) Handler(ctx *context.Context) {
}
}
// CreateCaptchaHTML temp
al
te func for output html
// CreateCaptchaHTML temp
la
te func for output html
func
(
c
*
Captcha
)
CreateCaptchaHTML
()
template
.
HTML
{
value
,
err
:=
c
.
CreateCaptcha
()
if
err
!=
nil
{
...
...
@@ -255,7 +255,7 @@ func NewCaptcha(urlPrefix string, store cache.Cache) *Captcha {
}
// NewWithFilter create a new captcha.Captcha and auto AddFilter for serve captacha image
// and add a temp
al
te func for output html
// and add a temp
la
te func for output html
func
NewWithFilter
(
urlPrefix
string
,
store
cache
.
Cache
)
*
Captcha
{
cpt
:=
NewCaptcha
(
urlPrefix
,
store
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment