E3017 Types Errors

Types

fmt.%s() cannot format value of type '%s'; use println() for composite types, or access individual fields

When this occurs

for_each on non-iterable

Example error message

error[E3017]: for_each requires array or string, got INTEGER

How to fix

Only arrays, strings, maps, and ranges can be used in `for_each` loops.

Related errors