The main challenge here is ensuring everything still works when built with 1.4. Probably build tag protected files, with something like type buffer struct { bytes.Buffer } for pre-1.10 and type buffer = strings.Builder for 1.10+.
The main challenge here is ensuring everything still works when built with 1.4.
Probably build tag protected files, with something like
type buffer struct {
bytes.Buffer
}
for pre-1.10 and
type buffer = strings.Builder
for 1.10+.