-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add gvar example #1486
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
add gvar example #1486
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1486 +/- ##
==========================================
+ Coverage 71.02% 71.10% +0.07%
==========================================
Files 414 414
Lines 40022 40022
==========================================
+ Hits 28425 28456 +31
+ Misses 9805 9773 -32
- Partials 1792 1793 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
| } | ||
|
|
||
| func ExampleVar_Struct() { | ||
| params1 := map[string]interface{}{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| var m = g.Map{"id": 1, "price": 100.00} | ||
| var a1 = gvar.New(m) | ||
| var b1 = a1.Map() | ||
| fmt.Println(b1["id"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add gvar example