def utf8.decode.go
import gralha-http-core@0.1.0.0/http.bend as Httpimport Base
103def utf8.decode.go(bytes: List<&2, U32>, +need: U32, +code: U32, acc: String) -> String:
104 match bytes:
105 case Nil{}:
106 String.reverse(acc)
107 case Con{+b, t}:
108 utf8.decode.go(t, utf8.need(b, need), utf8.code(b, need, code), utf8.emit(b, need, code, acc))