func ExampleBuffer_Write() {
	var lines lines.Buffer
	lines.AddLineF("A simple line")
	lines.AddLineF("Trailing new lines are not needed\n")
	lines.AddLineF("You can use %s arguments", "fmt.Printf")

	err := lines.Write(os.Stdout)
	if err != nil {
		panic(err)
	}
	// Output: A simple line
	// Trailing new lines are not needed
	//
	// You can use fmt.Printf arguments
}
// This example show how to use a lines.Buffer
// to acccumulate a bunch of lines and write them
// to console at end using `Write` method.
This example show how to use a lines.Buffer
to acccumulate a bunch of lines and write them
to console at end using `Write` method.
// This example show how to use a lines . Buffer // to acccumulate a bunch of lines and write them // to console at end using ` Write ` method .
func ExampleBuffer_Write() {
	var lines lines.Buffer
	lines.AddLineF("A simple line")
	lines.AddLineF("Trailing new lines are not needed\n")
	lines.AddLineF("You can use %s arguments", "fmt.Printf")
	err := lines.Write(os.Stdout)
	if err != nil {
		panic(err)
	}
	 You can use fmt.Printf arguments
}
func ExampleBuffer_Write ( ) { var lines lines . Buffer lines . AddLineF ( " " ) lines . AddLineF ( " \n " ) lines . AddLineF ( " " , " " ) err := lines . Write ( os . Stdout ) if err != nil { panic ( err ) } }
This example show how to use a lines.Buffer
to acccumulate a bunch of lines and write them
to console at end using `Write` method.
This example show how to use a lines . Buffer to acccumulate a bunch of lines and write them to console at end using ` Write ` method .
// Output: A simple line // Trailing new lines are not needed // // You can use fmt.Printf arguments