I extracted the structs that were inline in board.go and card.go into their own exported (named) structs. This should make it easier to check if they are empty by allowing checks such as this:
// Where board is an initialized Board
if board.Prefs == BoardPrefs{} {
// This is empty
} else {
// There are prefs here
}
I extracted the structs that were inline in board.go and card.go into their own exported (named) structs. This should make it easier to check if they are empty by allowing checks such as this: