Go - Structs - 2


  • A named type S CAN NOT declare a field with the same type S, but it can contains a field with type *S, for recursive data structure
  • Zero struct fields are zero value as well
  • Empty struct can be declared as “struct {}”, contains no field

沒有留言:

張貼留言

Lessons Learned While Using Claude Code Skills

Recently, I started experimenting with Claude Code Skills . I first saw this YouTube video: https://www.youtube.com/watch?v=CEvIs9y1uog ...