Add the ability to select type of output.
This commit is contained in:
14
export/flat.go
Normal file
14
export/flat.go
Normal file
@ -0,0 +1,14 @@
|
||||
package export
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
)
|
||||
|
||||
// Print solutions into a human friendly format for in the console.
|
||||
func (export *Export) PrintFlatSolutions() {
|
||||
for solutionIndex, solution := range export.Controller.Solutions {
|
||||
log.Printf("\nSolution #%d:", solutionIndex+1)
|
||||
fmt.Println(solution)
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// Print solutions into a human friendly format for in the console.
|
||||
func (export *Export) PrintSolutions() {
|
||||
func (export *Export) PrintHumanSolutions() {
|
||||
for solutionIndex, solution := range export.Controller.Solutions {
|
||||
log.Printf("\nSolution #%d:", solutionIndex+1)
|
||||
//fmt.Println(solution)
|
||||
|
Reference in New Issue
Block a user