Add the ability to select type of output.

This commit is contained in:
2025-01-28 01:04:38 +01:00
parent a7c5845b7a
commit 515034a64e
5 changed files with 34 additions and 2 deletions

14
export/flat.go Normal file
View 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)
}
}

View File

@ -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)