@@ -53,6 +53,12 @@ func (field Field) String() string {
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// GoString generates a string output for "%#v"
|
||||
func (*Field) GoString() string {
|
||||
var buf bytes.Buffer
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
func writeSectionToBuffer(w *bytes.Buffer, sec *Section, nl string) int {
|
||||
var written, n int
|
||||
|
||||
@@ -90,6 +96,12 @@ func (sec *Section) String() string {
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// GoString generates a string output for "%#v"
|
||||
func (*Section) GoString() string {
|
||||
var buf bytes.Buffer
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// WriteTo writes a INI representation of the document
|
||||
// onto the provided writer.
|
||||
func (doc *Document) WriteTo(w io.Writer) (int64, error) {
|
||||
@@ -102,3 +114,9 @@ func (doc *Document) String() string {
|
||||
buf := doc.AsBuffer(WriteNewLine)
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// GoString generates a string output for "%#v"
|
||||
func (Document) GoString() string {
|
||||
var buf bytes.Buffer
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user