Let's use Type Assertion in practice

Report a typo

You have the following interface:

Please, enter the output of the code in the answer box below

var resource interface{} = "Stepik"
value, ok := resource.(string)

fmt.Println(value, ok)
Enter a short text
___

Create a free account to access the full topic