packagetermuiimport("math")constDOTS='…'// MaxString trims a string and adds dots if its length is greater than lfuncMaxString(sstring,lint)string{ifl<=0{return""}r:=[]rune(s)iflen(r)>l{r=r[:l]r[l-1]=DOTS}returnstring(r)}funcRound(ffloat64)float64{returnmath.Floor(f+.5)}