8000 🐛 fix: read value from custom method first by iFaceless · Pull Request #7 · iFaceless/portal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 fix: read value from custom method first #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

iFaceless
Copy link
Owner
@iFaceless iFaceless commented Oct 21, 2019

Example:

type BaseModel struct {
    Name string
}

type FooModel struct {
    BaseModel
}

func (f *FooModel) Name() string {
    return "custom name"
}

// portal will read value from the above method, get your custom name.
portal.Dump(&dst, &fooModel)

@iFaceless iFaceless merged commit 476517f into master Oct 21, 2019
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 88.406% when pulling 78698f3 on read-value-from-custom-method into ad96241 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 88.406% when pulling 78698f3 on read-value-from-custom-method into ad96241 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0