Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
568c0c47
authored
2014-05-16 13:11:55 +0800
by
slene
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #542 from kylemcc/develop
orm: allow unexported fields on model structs
2 parents
2629de28
4785ac14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
orm/models_info_m.go
orm/models_info_m.go
View file @
568c0c4
...
...
@@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
for
i
:=
0
;
i
<
ind
.
NumField
();
i
++
{
field
:=
ind
.
Field
(
i
)
sf
=
ind
.
Type
()
.
Field
(
i
)
if
sf
.
PkgPath
!=
""
{
continue
}
fi
,
err
=
newFieldInfo
(
info
,
field
,
sf
)
if
err
!=
nil
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment