projects
/
k_transpose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03519b4
)
start with httpd // fix timestamps on git
author
kremlin
<ian@kremlin.cc>
Sat, 24 Jan 2015 02:43:52 +0000
(21:43 -0500)
committer
kremlin
<ian@kremlin.cc>
Sat, 24 Jan 2015 02:43:52 +0000
(21:43 -0500)
httpd.go
patch
|
blob
|
blame
|
history
diff --git
a/httpd.go
b/httpd.go
index 13d136110b0e5e17230896388ac3d6dad33248b8..856d7dfe26909b38ee55c929c67bb4176e44b491 100644
(file)
--- a/
httpd.go
+++ b/
httpd.go
@@
-1,9
+1,14
@@
-package main
+package main
import "fmt"
-/*import "net/http"*/
+import "net/http"
func main() {
+ /* make sure to close() anything you need to (you need to) */
fmt.Println("welp");
+ resp, err := http.Get("http://kremlin.cc")
+
+ if err != nil {}
+ fmt.Println(resp)
}