This file contains hidden or 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 function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs. | |
| Example how to use posted in sample_test.go file. | |
| */ | |
| func structToMap(item interface{}) map[string]interface{} { | |
| res := map[string]interface{}{} | |
| if item == nil { | |
| return res | |
| } |
This file contains hidden or 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
| Docker 6 hrs 16 mins βββββββββββββββββββββ 43.8% | |
| Makefile 3 hrs 39 mins βββββββββββββββββββββ 25.5% | |
| Go 55 mins βββββββββββββββββββββ 6.5% | |
| HTML 45 mins βββββββββββββββββββββ 5.3% | |
| Python 37 mins βββββββββββββββββββββ 4.4% |
OlderNewer