-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An example for how this works using the `user` resource and setting its `group` field to null: ```go func (x *mqlUser) group(gid int64) (*mqlGroup, error) { x.Group.State = plugin.StateIsSet|plugin.StateIsNull return nil, nil } ``` Once you set the field internally (`StateIsSet`), it will ignore the return values and instead read it from the field that you set. Then it will see `StateIsNull` and use it on the return data
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters