func (b *Buffer) SetContents(byts []byte) {
	b.contents = byts
	b.cc = nil
}
SetContents updates a Buffer's contents to byts
package types
import (
	"bytes"
	"fmt"
	"go/ast"
	"go/token"
	"github.com/govim/govim/cmd/govim/internal/golang_org_x_tools/lsp/protocol"
	"github.com/govim/govim/cmd/govim/internal/golang_org_x_tools/span"
)
type Buffer struct {
	Num      int
	Name     string
	contents []byte
	Version  int32
	Listener int
	Loaded bool
	Fset *token.FileSet
	AST *ast.File
	ASTWait chan bool
	cc *span.TokenConverter
}
func NewBuffer(num int, name string, contents []byte, loaded bool) *Buffer {
	return &Buffer{
		Num:      num,
		Name:     name,
		contents: contents,
		Loaded:   loaded,
	}
}
func (b *Buffer) Contents() []byte {
	return b.contents
}