Skip to content
Snippets Groups Projects
Commit fedf3d4e authored by Geurtjens,D. (Douwe Geurtjens)'s avatar Geurtjens,D. (Douwe Geurtjens)
Browse files

math does not exists in golang

parent 763e8eb3
No related branches found
No related tags found
1 merge request!1Big merge
......@@ -2,7 +2,6 @@ package entity
import (
"errors"
"math"
)
const ENTITYSTRING = "entity"
......@@ -101,8 +100,8 @@ func groupByByValid(groupBy QueryGroupByStruct, typeString string, minID int, ma
}
func getMinAndMaxEntityID(entities []QueryEntityStruct) (int, int) {
min := math.MaxInt
max := math.MinInt
min := 65535
max := -65535
for _, e := range entities {
if e.ID < min {
min = e.ID
......@@ -116,8 +115,8 @@ func getMinAndMaxEntityID(entities []QueryEntityStruct) (int, int) {
}
func getMinAndMaxRelationID(relations []QueryRelationStruct) (int, int) {
min := math.MaxInt
max := math.MinInt
min := 65535
max := -65535
for _, e := range relations {
if e.ID < min {
min = e.ID
......@@ -132,8 +131,8 @@ func getMinAndMaxRelationID(relations []QueryRelationStruct) (int, int) {
}
func getMinAndMaxGroupByID(groupBys []QueryGroupByStruct) (int, int) {
min := math.MaxInt
max := math.MinInt
min := 65535
max := -65535
for _, e := range groupBys {
if e.ID < min {
min = e.ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment