package dstream import ( "fmt" "time" ) func (r *replaceColumn) GetPos(j int) interface{} { if j != r.colpos { return r.source.GetPos(j) } switch z := r.coldata.(type) { {{- range . }} case []{{ .Type }}: return z[r.rowpos:r.rowpos+r.csize] {{- end }} default: msg := fmt.Sprintf("unknown type %T\n", z) panic(msg) } }