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 | |
| // run this file with `go run clientDoGzip.go, and then file tmp.out to verify body is gzipped | |
| import "compress/gzip" | |
| import "net/http" | |
| import "fmt" | |
| import "io" | |
| import "log" | |
| import "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
| include $(GOROOT)/src/Make.inc | |
| CMDS=\ | |
| command-1\ | |
| command-2\ | |
| command-3 | |
| PKGS=\ | |
| package-1\ | |
| package-2\ |
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 ( | |
| "container/vector" | |
| "fmt" | |
| "os" | |
| "path" | |
| ) | |
| type V struct { |