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
568c0c47
Commit
568c0c47
authored
May 16, 2014
by
slene
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #542 from kylemcc/develop
orm: allow unexported fields on model structs
parents
2629de28
4785ac14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
models_info_m.go
orm/models_info_m.go
+3
-0
No files found.
orm/models_info_m.go
View file @
568c0c47
...
@@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
...
@@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
for
i
:=
0
;
i
<
ind
.
NumField
();
i
++
{
for
i
:=
0
;
i
<
ind
.
NumField
();
i
++
{
field
:=
ind
.
Field
(
i
)
field
:=
ind
.
Field
(
i
)
sf
=
ind
.
Type
()
.
Field
(
i
)
sf
=
ind
.
Type
()
.
Field
(
i
)
if
sf
.
PkgPath
!=
""
{
continue
}
fi
,
err
=
newFieldInfo
(
info
,
field
,
sf
)
fi
,
err
=
newFieldInfo
(
info
,
field
,
sf
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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