An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/ik5/gobom

Package gobom contains several methods to detect BOM type. BOM stands for Byte Order Mark. It is a standard by the Unicode organization to understand the type of encoding is standing in front of us, by placing non printable chars that explains if an encoding is UTF16 or UTF32, and what is the endian that it uses. The standard does not recommend to place a BOM to UTF8, but it supports that as well. This library was created for helping me detect if something contain a BOM, and that's it. It does not do anything else, and there is no plan for anything other then detecting it. How does the library works? The library can use io.Reader, and also "pure" byte slices and rune slices in order to detect the type of BOM. Please note: If a BOM is not detected, then it will return "Unknown". If a buffer is too small to detect BOM type it also returns "Unknown"

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/ik5/gobom
Keywords: bom , charset , detection , go , golang , unicode
License: MIT
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/ik5
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 months ago

    Loading...
    Readme
    Loading...