Edited comments
This commit is contained in:
parent
0db041f3a4
commit
dbe859620b
2 changed files with 4 additions and 43 deletions
2
write.go
2
write.go
|
@ -22,6 +22,7 @@ func (c *ConfigFile) WriteConfigFile(fname string, perm int, header string) (err
|
|||
return file.Close();
|
||||
}
|
||||
|
||||
// WriteConfigBytes returns the configuration file.
|
||||
func (c *ConfigFile) WriteConfigBytes(header string) (config []byte) {
|
||||
buf := bytes.NewBuffer(nil)
|
||||
|
||||
|
@ -30,6 +31,7 @@ func (c *ConfigFile) WriteConfigBytes(header string) (config []byte) {
|
|||
return buf.Bytes()
|
||||
}
|
||||
|
||||
// Writes the configuration file to the io.Writer.
|
||||
func (c *ConfigFile) Write(writer io.Writer, header string) (err os.Error) {
|
||||
buf := bytes.NewBuffer(nil)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue