golang print bool as string code example Example: bool to string golang use the strconv package docs strconv.FormatBool(v)