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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
r := genericMap([]int{1, 2, 3, 4}, func(x int) string { | |
return "Hello" |
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
package models | |
type Channel struct { | |
UserID string `json:"user_id" bson:"user_id"` | |
OrganizationID string `json:"org_id" bson:"org_id"` | |
ApplicationID string `json:"app_id" bson:"app_id"` | |
ChannelData interface{} `json:"channel_data" bson:"channel_data"` | |
Ident string `json:"ident" bson:"ident"` | |
} |
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
package main | |
import ( | |
"bufio" | |
"net/http" | |
"os" | |
"fmt" | |
) | |
type Url struct { |
NewerOlder