An open API service indexing awesome lists of open source software.

https://github.com/anders/jutf

Go implementation of modified UTF-8 (Java)
https://github.com/anders/jutf

Last synced: 3 months ago
JSON representation

Go implementation of modified UTF-8 (Java)

Awesome Lists containing this project

README

          

# jutf
This library implements support for the [modified UTF-8 scheme][1] used in Java.
In particular, this is the format used by the `DataInputStream#readUTF` and
`DataOutputStream#writeUTF` methods.

The library exports two functions:
````go
func Decode(d []byte) (string, error)
func Encode(s string) []byte
````

## License
MIT. See [LICENSE][2].

[1]: https://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html#modified-utf-8
[2]: ./LICENSE