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 Benchmarking vLLM with GPU

Recently, I benchmarked vLLM on a GPU to better understand how much throughput can realistically be expected in an LLM serving setup. One ...