Incremental encoding for Go