hostlayout_go122.mx raw

   1  //go:build !go1.23
   2  
   3  package cm
   4  
   5  // HostLayout marks a struct as using host memory layout.
   6  // See [structs.HostLayout] in Go 1.23 or later.
   7  type HostLayout struct {
   8  	_ hostLayout // prevent accidental conversion with plain struct{}
   9  }
  10  
  11  type hostLayout struct{}
  12