Make godoc happy, and add extra comments.

This commit is contained in:
2025-01-28 00:31:02 +01:00
parent 6b0e55e3f9
commit 6dd5d2f232
11 changed files with 55 additions and 17 deletions

View File

@ -5,6 +5,7 @@ import (
"log"
)
// Print solutions into a human friendly format for in the console.
func (export *Export) PrintSolutions() {
for solutionIndex, solution := range export.Controller.Solutions {
log.Printf("\nSolution #%d:", solutionIndex+1)

View File

@ -2,6 +2,7 @@ package export
import "gitea.ligthert.net/golang/sudoku-funpark/controller"
// A simple inteface to export found solutions in different formats.
type Export struct {
Controller *controller.Controller
}