Value Parts

46 阅读1分钟

参考:go101.org/article/val…

Solo Direct Value Part

boolean types
numeric types
pointer types
unsafe pointer types
struct types
array types

Direct Part -> Underlying Part

slice types
map types
channel types
function types
interface types
string types

Note,

  • whether or not interface and string values may contain underlying parts is compiler dependent. For the standard Go compiler implementation, interface and string values may contain underlying parts.
  • whether or not functions values may contain underlying parts is hardly, even impossible, to prove. In Go 101, we will view functions values may contain underlying parts.