renderFlatSolutions.go 371 B

123456789101112131415
  1. package export
  2. import (
  3. "fmt"
  4. "strconv"
  5. )
  6. // Print solutions into a human friendly format for in the console.
  7. func (export *Export) renderFlatSolutions() (render string) {
  8. for solutionIndex, solution := range export.Controller.Solutions {
  9. render += fmt.Sprintln("\nSolution #" + strconv.Itoa(solutionIndex+1) + ":")
  10. render += fmt.Sprintln(solution)
  11. }
  12. return
  13. }