code: func putCompressedTxOut(target []byte, amount uint64, pkScript []byte) int {
  	offset := putVLQ(target, compressTxOutAmount(amount))
  	offset += putCompressedScript(target[offset:], pkScript)
  	return offset
  }
docs: // putCompressedTxOut compresses the passed amount and script according to their
  // domain specific compression algorithms and encodes them directly into the
  // passed target byte slice with the format described above.  The target byte
  // slice must be at least large enough to handle the number of bytes returned by
  // the compressedTxOutSize function or it will panic.