code: func (cmd *PageCommand) PrintFreelist(w io.Writer, buf []byte) error {
  	p := (*page)(unsafe.Pointer(&buf[0]))
  
  	// Print number of items.
  	fmt.Fprintf(w, "Item Count: %d\n", p.count)
  	fmt.Fprintf(w, "\n")
  
  	// Print each page in the freelist.
  	ids := (*[maxAllocSize]pgid)(unsafe.Pointer(&p.ptr))
  	for i := uint16(0); i < p.count; i++ {
  		fmt.Fprintf(w, "%d\n", ids[i])
  	}
  	fmt.Fprintf(w, "\n")
  	return nil
  }
docs: // PrintFreelist prints the data for a freelist page.