{"repo":"bytedance/gg","free":true,"listed":false,"github":"https://github.com/bytedance/gg","clone":"git clone https://github.com/bytedance/gg.git","description":"🔥gg is a basic library of generics for Go language developed by ByteDance. It is based on the Go 1.18+ generic features and provides efficient, type-safe and rich generic data structures and tool functions.","language":"Go","stars":390,"topics":["generics","go","golang"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"gg: Go Generics English 简体中文 🔥 bytedance/gg is a basic library of generics for Go language developed by ByteDance. It is based on the Go 1.18+ generic features and provides efficient, type-safe and rich generic data structures and tool functions. ❓ Why this name? Take the first letter of G o G enerics, short and simple. ❓ Why choose gg? - Stable and reliable: It is a necessary tool library for ByteDance R&D team, and it has 1w+ repository references inside. - Easy to use: With the design principle of simplicity and self-consistent, subcontracted according to functions, modular, semantic intuitive and unified, and low learning cost. - High Performance: Provides high-performance concurrent data structures, with performance 10+ times faster than standard library. - No three-party dependencies: Generic libraries will not introduce any three-party dependencies. - Version control: Follow the SemVer, guaranteeing backward compatibility. 🚀 Install 🔎 Table of contents - Generic Functional Programming - goption：Option type, simplifying the processing of (T, bool) - gresult：Result type, simplifying the processing of (T, error) - Generic Data Processing - gcond：Conditional operation - gvalue：Processing value T - gptr：Processing pointer T - gslice：Processing slice []T - gmap：Processing map map[K]V - gfunc：Processing function func - gconv：Data type conversion - gson：Processing JSON - Generic Standard Wrapper - gsync：Wrap sync - Generic Data Structures - tuple：Implementation of tuple pro","default_branch":null,"files":null,"tree":[],"storefront":"/r/bytedance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bytedance/gg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}