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)
- Host: GitHub
- URL: https://github.com/anders/jutf
- Owner: anders
- License: mit
- Created: 2019-03-02T21:42:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T00:50:43.000Z (over 5 years ago)
- Last Synced: 2024-12-27T14:14:33.304Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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