code: func marshalFinishedInvs(invs []*internal.FinishedInvocation) []byte {
  	if len(invs) == 0 {
  		return nil
  	}
  	blob, err := proto.Marshal(&internal.FinishedInvocationList{Invocations: invs})
  	if err != nil {
  		panic(err)
  	}
  	return blob
  }
docs: // marshalFinishedInvs marshals list of invocations into FinishedInvocationList.
  //
  // Panics on errors.