E3095 Types Errors

Types

'in' only works with arrays, maps, and strings; got '%s'

When this occurs

This error is triggered when: 'in' only works with arrays, maps, and strings; got '%s'

Example error message

error[E3095]: 'in' only works with arrays, maps, and strings; got '%s'

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.