code: func WriteCodeEntry(w io.Writer, entry *module.CodeEntry) error {
  
  	if err := leb128.WriteVarUint32(w, uint32(len(entry.Func.Locals))); err != nil {
  		return err
  	}
  
  	for _, local := range entry.Func.Locals {
  
  		if err := leb128.WriteVarUint32(w, local.Count); err != nil {
  			return err
  		}
  
  		if err := writeValueType(w, local.Type); err != nil {
  			return err
  		}
  	}
  
  	return writeInstructions(w, entry.Func.Expr.Instrs)
  }
docs: // WriteCodeEntry writes a binary encoded representation of entry to w.