From 0db041f3a4ac7fa1cac98c9e6a2a1f51fc0774e7 Mon Sep 17 00:00:00 2001 From: Stephen Weinberg Date: Mon, 29 Mar 2010 00:24:03 -0400 Subject: [PATCH] Makefile changed --- Makefile | 2 +- conf.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 718cbaf..9d296a3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ include $(GOROOT)/src/Make.$(GOARCH) -TARG=goconf.googlecode.com/hg/ +TARG=conf GOFILES=\ conf.go\ get.go\ diff --git a/conf.go b/conf.go index 33590a9..99f30bf 100644 --- a/conf.go +++ b/conf.go @@ -17,7 +17,7 @@ // // To read this configuration file, do: // -// c, err := configfile.ReadConfigFile("config.cfg"); +// c, err := conf.ReadConfigFile("config.cfg"); // c.GetString("service-1", "url"); // result is string :http://www.example.com/some/path" // c.GetInt("service-1", "maxclients"); // result is int 200 // c.GetBool("service-1", "delegation"); // result is bool true @@ -28,7 +28,7 @@ // // A new configuration file can also be created with: // -// c := configfile.NewConfigFile(); +// c := conf.NewConfigFile(); // c.AddSection("section"); // c.AddOption("section", "option", "value"); // c.WriteConfigFile("config.cfg", 0644, "A header for this file"); // use 0644 as file permission