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
2019/02/12 05:04:03 n = 10 | |
2019/02/12 05:04:03 | |
2019/02/12 05:04:03 [find n critiques] started | |
2019/02/12 05:04:04 found 10 crits | |
2019/02/12 05:04:04 elapsed: 11.835827ms | |
2019/02/12 05:04:04 | |
2019/02/12 05:04:04 [get n actors + depth=0] started | |
2019/02/12 05:04:04 found 10 actors | |
listening... | |
- 1 2019-02-09 18:27:29.214357 +0200 EET |
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 stuff | |
import { | |
"fmt" | |
"github.com/tucnak/pipes" // пасхалка | |
} | |
class A { | |
slots: |
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 ( | |
"github.com/tucnak/climax" | |
) | |
func plain(group, name, brief string) *climax.Command { | |
return &climax.Command{ | |
Name: name, | |
Brief: brief, |
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
diff --git a/application.go b/application.go | |
index 3bf7d8f..6226dd2 100644 | |
--- a/application.go | |
+++ b/application.go | |
@@ -3,7 +3,6 @@ package climax | |
import ( | |
"fmt" | |
"os" | |
- "strings" | |
) |
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 "fmt" | |
func main() { | |
numbers := []int{0, 1, 2, 3, 4} | |
for _, number := range numbers { | |
number++ | |
} |
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 ( | |
"fmt" | |
"strconv" | |
) | |
type FancyInt int | |
func (x FancyInt) String() string { |
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 "fmt" | |
func Secret() (int, error) { | |
return 42, nil | |
} | |
func main() { | |
number := 0 |
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 "fmt" | |
type MagicError struct{} | |
func (MagicError) Error() string { | |
return "[Magic]" | |
} |
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
// Some numbers, please! | |
numbers := []int{1, 2, 3, 4, 5} | |
log(numbers) // 1. [1 2 3 4 5] | |
log(numbers[2:]) // 2. [3 4 5] | |
log(numbers[1:3]) // 3. [2 3] | |
// Fun fact: you can’t use negative indices! | |
// | |
// numbers[:-1] from Python won’t work. Instead, |
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
[tucnak@atlantis:src]$ go version | |
go version go1.4.2 darwin/amd64 | |
[tucnak@atlantis:src]$ go env | |
GOARCH="amd64" | |
GOBIN="" | |
GOCHAR="6" | |
GOEXE="" | |
GOHOSTARCH="amd64" | |
GOHOSTOS="darwin" |