You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: type.go
    path of file: ./repos/plumber/vendor/github.com/batchcorp/thrift-iterator/protocol/compact
    
    the code of the file until where you have to start completion: package compact

import (
	"github.com/batchcorp/thrift-iterator/protocol"
)

type TCompactType byte

const (
	TypeStop         TCompactType = 0x00
	TypeBooleanTrue  TCompa
    
func (t TCompactType) ToTType() protocol.TType {
	switch TCompactType(byte(t) & 0x0f) {
	case TypeBooleanFalse, TypeBooleanTrue:
		return protocol.TypeBool
	case TypeByte:
		return protocol.TypeByte
	case TypeI16:
		return protocol.TypeI16
	case TypeI32:
		return protocol.TypeI32
	case TypeI64:
		return protocol.TypeI64
	case TypeDouble:
		return protocol.TypeDouble
	case TypeBinary:
		return protocol.TypeString
	case TypeList:
		return protocol.TypeList
	case TypeSet:
		return protocol.TypeSet
	case TypeMap:
		return protocol.TypeMap
	case TypeStruct:
		return protocol.TypeStruct
	}
	return protocol.TypeStop
}