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
| /* | |
| UnixNano method has time-sensitivity between 40-500 nanoseconds. | |
| Likely to produce the same output for few simultaneous goroutines within | |
| the same period. Do not rely on UnixNano result being unique. | |
| */ | |
| package main | |
| import ( | |
| "fmt" | |
| "sync" |
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
| package flatten | |
| import ( | |
| "errors" | |
| "fmt" | |
| ) | |
| func Flatten(arr interface{}) ([]int, error) { | |
| return doFlatten([]int{}, arr) | |
| } |
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
| package main | |
| import ( | |
| "log" | |
| "github.com/zeromq/goczmq" | |
| ) | |
| func main() { | |
| // Bir router oluşturdum ve 5555 i listen ettirdim |