🗃️ General Codec
7 items
📄️ Binary
The gbinary package in the GoFrame framework provides encoding and decoding functionality for converting between binary data and various data types. It is widely used in network communication and data file operations. It supports precise bit processing for integer data and offers a range of encoding and decoding interfaces to ensure efficient data conversion across different types and platforms.
📄️ BASE64
Use BASE64 encoding and decoding functions, based on the GoFrame framework's gbase64 package, providing encoding and decoding methods. Learn more through GitHub links and API documentation, a practical component for Go language developers.
📄️ Classic Hash Functions
Implementation of classic hash functions in Go language, providing ways to use hash functions for uint32 and uint64 types. Through the GoFrame framework, users can implement hash functions more efficiently. The document includes detailed API documentation and benchmark results to help users optimize and understand encoding performance. Additionally, simple repeatability tests demonstrate the characteristics and performance of different hash functions.
📄️ HTML
Perform HTML encoding and decoding in projects built with the GoFrame framework. By importing relevant packages, HTML content can be easily processed. An official API documentation link is provided at the end to further help developers understand and utilize.
📄️ URL
Perform URL encoding and decoding using the gurl package in the GoFrame framework, including how to construct URL parameters, encode and decode URL parameters, and parse URLs to obtain their different components. These features are very useful for network programming and data transmission in the Go language, suitable for developers with similar needs to reference.
📄️ XML
Using gxml in the GoFrame framework for encoding and decoding XML data formats. Provides basic usage of the gxml library and links to related interface documentation to help developers handle XML data easily in Go language projects. Specific implementations include import statements and examples of calling the gxml library.
📄️ INI
Methods for encoding and decoding INI data format using the GoFrame framework. It provides a detailed explanation on how to perform INI encoding and decoding through the gini package in the GoFrame framework and offers links to related API documentation for developers' reference.
📄️ YAML
Methods for encoding and decoding YAML data format, using the gyaml library under the GoFrame framework for encoding and parsing. By importing the github.com/gogf/gf/v2/encoding/gyaml package, you can easily handle YAML formatted data. In addition, links to API documentation are provided for user reference.
📄️ TOML
Methods for encoding and decoding the TOML data format using the GoFrame framework. By introducing the gogf gtoml package, it is easy to perform encoding and decoding operations on data in TOML format. The article also provides a link to the API documentation to help developers gain deeper insights into the usage details of gtoml.
📄️ Charset Conversion
The character encoding conversion module gcharset in the GoFrame framework supports conversions of common character sets such as GBK and UTF-8, providing developers with flexible character set compatibility. By importing the relevant package, developers can achieve conversions between different character sets to meet the needs of multilingual and international users, enhancing the internationalization and localization capabilities of applications.
📄️ Compression
Compression and decompression functionality for binary data, specifically the use of Zlib and GZip algorithms. Through the GoFrame framework, users can easily implement data compression and decompression. For specific implementations, please refer to the API documentation. This page provides detailed call examples and links to related technical documentation to help developers get started quickly.