rrda

REST API allowing to perform DNS queries over HTTP
Log | Files | Refs | README | LICENSE

commit 70f9b07b36f15370b1d32bf403023dbceb2c531c
parent 6d7e5bdc23adbca35df070f01527cf13b0d5226b
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Mon,  1 Jul 2013 18:38:17 +0200

Updated version numbers and ChangeLog to 1.00

Diffstat:
AChangeLog | 3+++
Mrrda.go | 7+++----
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -0,0 +1,3 @@ +RRDA 1.00 (2013-07-01) + +- Initial release diff --git a/rrda.go b/rrda.go @@ -154,15 +154,14 @@ func ptr(w http.ResponseWriter, r *http.Request) { } func main() { - header := `------------------------------------------------------------------------------- -RRDA (RRDA REST DNS API) (c) by Frederic Cambus 2012-2013 --------------------------------------------------------------------------------` + header := "-------------------------------------------------------------------------------\n RRDA (RRDA REST DNS API) 1.00 (c) by Frederic Cambus 2012-2013\n-------------------------------------------------------------------------------" host := flag.String("host", "127.0.0.1", "Set the server host") port := flag.String("port", "8080", "Set the server port") flag.Usage = func() { - fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]) + fmt.Println(header) + fmt.Println("\nUSAGE :") flag.PrintDefaults() } flag.Parse()