Add link to runtime.hmap struct

This commit is contained in:
Austin Raney 2023-10-26 22:10:56 -04:00 committed by GitHub
parent 668d6165fe
commit e8cacbc0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ Each bucket is a fixed-size array of eight elements. In the case of an insertion
</figure>
Under the hood, a Go map is a pointer to a runtime.hmap struct. This struct contains multiple fields, including a B field, giving the number of buckets in the map:
Under the hood, a Go map is a pointer to a [runtime.hmap](https://github.com/golang/go/blob/0262ea1ff9ac3b9fd268a48fcaaa6811c20cbea2/src/runtime/map.go#L117-L131) struct. This struct contains multiple fields, including a B field, giving the number of buckets in the map:
```go
type hmap struct {