Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Reflection
Which check is the right default before setting one reflect.Value from another?
from Reflection
Go 1.27
intermediate
1 min
Which check is the right default before setting one reflect.Value from another?
The two values have the same Kind.
source.Type().AssignableTo(destination.Type())
source.CanAddr() is true.
destination.Type().ConvertibleTo(source.Type())
Check
Ask AI about this kata
Report an error
previous kata
Why would a decoder use StructTag.Lookup("config") instead of Get("config")?
Quiz
A new version is available
Reload