Permalink
Browse files

Minor fixes and package description strings.

  • Loading branch information...
1 parent cb17983 commit 941b9cd8d3016d82cb248414a5daa45918bbe169 Rémy Oudompheng committed Feb 24, 2012
Showing with 4 additions and 24 deletions.
  1. +0 −14 Makefile
  2. +2 −1 {aurjson → }/aur.go
  3. +2 −1 { → aurgo}/main.go
  4. +0 −8 aurjson/Makefile
View
14 Makefile
@@ -1,14 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-DEPS=aurjson
-
-TARG=aurgo
-GOFILES=\
- main.go\
-
-include $(GOROOT)/src/Make.cmd
-
-clean: recursive-clean
-
-recursive-clean:
- $(MAKE) -C aurjson clean
View
3 aurjson/aur.go → aur.go
@@ -1,3 +1,4 @@
+// Package aur implements a client for the AUR JSON API.
package aur
import (
@@ -64,7 +65,7 @@ func genericQuery(querytype, arg string, target interface{}) error {
return er
}
- buf := bytes.NewBuffer(nil)
+ buf := new(bytes.Buffer)
_, er = io.CopyN(buf, resp.Body, 1e6)
if er != nil && er != io.EOF {
return er
View
3 main.go → aurgo/main.go
@@ -1,7 +1,8 @@
+// aurgo is a small AUR standalone client.
package main
import (
- aurjson "github.com/remyoudompheng/go-aurjson/aurjson"
+ aurjson "github.com/remyoudompheng/go-aurjson"
"flag"
"fmt"
"os"
View
8 aurjson/Makefile
@@ -1,8 +0,0 @@
-include $(GOROOT)/src/Make.inc
-
-TARG=archlinux/aurjson
-GOFILES=\
- aur.go
-
-include $(GOROOT)/src/Make.pkg
-

0 comments on commit 941b9cd

Please sign in to comment.