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
| var Wait sync.WaitGroup | |
| var Counter int = 0 | |
| func main() { | |
| for routine := 1; routine <= 2; routine++ { | |
| Wait.Add(1) | |
| go Routine(routine) | |
| } |
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
| func createPages(ctx context.Context) { | |
| http.HandleFunc("/view/", makeHandler(viewHandler)) | |
| http.HandleFunc("/edit/", makeHandler(editHandler)) | |
| http.HandleFunc("/save/", makeHandler(saveHandler)) | |
| } | |
| func TestA1(t *testing.T){ | |
| tracer, closer := tracing.Init("hello-world") | |
| defer closer.Close() |
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 | |
| func main() { | |
| } | |
| func TestA(t *testing.T){ | |
| //if len(os.Args) != 2 { | |
| // panic("ERROR: Expecting one argument") | |
| //} |