do a go fmt, remove some unused consts