Select the correct features that apply to custom types and single field structs in Go.
Custom types and type aliases
Single field struct vs. custom type
Report a typo
Choose one or more options for each row
| Custom Type | Single Field Struct | |
|---|---|---|
| Can have associated methods | ||
| Provides type safety | ||
| Can be extended with additional fields | ||
| Represents a distinct type from its base | ||
| Used for straightforward data representation |
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.