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() { | |
| fmt.Println("Hello, 世界") | |
| } |
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
| crashing page: 797e50e47c5a4fe8a0dbf9f7828a6192 | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: net/http/server.go:2927 +0x38e | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: created by net/http.(*Server).Serve | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: net/http/server.go:1915 +0x9e0 | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: net/http.(*conn).serve(0xc000488500, 0xcb7180, 0xc001356600) | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: bufio/bufio.go:138 +0x4f | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: bufio.(*Reader).Peek(0xc0013640c0, 0x4, 0x1596aaa6edd3, 0x116af80, 0x0, 0x0, 0x116af80) | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: bufio/bufio.go:100 +0x103 | |
| Nov 02 13:30:38 ubuntu-s-2vcpu-4gb-nyc3-01 presstige[854]: bufio.(*Reader).fill(0xc0013640c0) |
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
| "c:\Users\kjk\Desktop\sum test\tst.pdf" -extract-text -1 |
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
| // :run go run main.go -echo echo-arg additional arg | |
| // :collection Essential Go | |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| ) |
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
| // collection: Essential Go | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| ) | |
| // :show start |
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
| // :collection Essential Go | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| ) | |
| // :show start |
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
| // :collection Essential Go | |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| // :show start | |
| var wg sync.WaitGroup |
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
| // :collection Essential Go | |
| package main | |
| import "fmt" | |
| func main() { | |
| // :show start | |
| v := 5 | |
| // pv is a pointer to v |
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
| // :collection Essential Go | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| // :show start | |
| func sqrt(n float64) (float64, error) { |
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
| // :collection Essential Go | |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| // :show start |