GoAdminGroup / go-admin

string to int signedness casting GO-E1006
Bug risk
Critical
2 months agoa year old
string to int signedness cast "uint8(detailDisplay)", might result in lost or misinterpreted data
1798			FilterFormLayout:         form.GetLayoutFromString(values.Get("filter_form_layout")),
1799			Schema:                   values.Get("schema"),
1800			Output:                   output,
1801			DetailDisplay:            uint8(detailDisplay),1802			FormTitle:                values.Get("form_title"),
1803			FormDescription:          values.Get("form_description"),
1804			DetailTitle:              values.Get("detail_title"),
string to int signedness cast "int8(loggerLevel)", might result in lost or misinterpreted data
 779
 780				c.Logger.Encoder.Encoding = m["logger_encoder_encoding"]
 781				loggerLevel, _ := strconv.Atoi(m["logger_level"])
 782				c.Logger.Level = int8(loggerLevel) 783
 784				if c.Logger.Encoder.Encoding == "json" {
 785					c.Logger.Encoder.TimeKey = m["logger_encoder_time_key"]