-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support typed setter functions #17
Comments
@theherk Good point. I think adding corresponding helper methods for the supported types makes sense. |
This patch adds typed setter functions for all supported getter functions.
This patch adds typed setter functions for all supported getter functions.
I've added |
I think you're right. I felt more confident about my thoughts when I opened the issue, but that faded. I think the SetValue makes good sense. |
This patch provides a generic SetValue() method which accepts the value as interface{} and then stores the default representation as defined by fmt.Sprintf("%v") as value.
@theherk Added a patch for the |
|
I'm not sure if I'm missing something, but it seems you can only set properties to strings. I know you can read other types, but what if I was to SetInt()?
The text was updated successfully, but these errors were encountered: