All of the following information is based on go version go1.8.3 darwin/amd64.
(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)
- android
- darwin
| func SliceUniqMap(s []int) []int { | |
| seen := make(map[int]struct{}, len(s)) | |
| j := 0 | |
| for _, v := range s { | |
| if _, ok := seen[v]; ok { | |
| continue | |
| } | |
| seen[v] = struct{}{} | |
| s[j] = v | |
| j++ | 
| package gettcpinfo | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "runtime" | |
| "testing" | |
| "golang.org/x/sys/unix" |