I am working on pulling in rows from the Db and storing the results in a Slice/Array
I need to calculate the totalRecords & totalPages.
pseudoCode ::
perPage int32 := ( some number )
totalRecords := len(array)
totalPages := perPage/totalRecords
I keep getting this error.
terminal::
`invalid operation: perPage / totalRecords (mismatched types int32 and int)`