package efficientbuffer type EfficientBuffer struct { } // TODO: work out how I can combine the following two functions into one // using interfaces - we check what type it is and deal with accordingly func Append(b1 *EfficientBuffer, b2 *EfficientBuffer)(out *EfficientBuffer){ } func Append(b1 *EfficientBuffer, b2 []byte)(out *EfficientBuffer){ }