# README
ðĪŠ G: Go Crazy, Go G, Go Nuts!
Introducing G, the wackiest Go package on the planet, created to make your coding experience an absolute riot! With G, you can forget about dull and monotonous code, we're all about turning the mundane into the insanely hilarious. It's not just a bicycle, it's almost a motorcycle ðĪĢ!
ð What's in the box?
- ð Readable syntax: Boring code is so yesterday! G turns your code into a party by blending seamlessly with Go and making it super clean and laughably maintainable.
- ð Encoding and decoding: Juggling data formats? No problemo! G's got your back with Base64, URL, Gzip, and Rot13 support. Encode and decode like a pro!
- ð Hashing extravaganza: Safety first, right? Hash your data with MD5, SHA1, SHA256, or SHA512, and enjoy peace of mind while G watches over your bytes.
- ð File and directory shenanigans: Create, read, write, and dance through files and directories with G's fun-tastic functions. Trust us, managing files has never been this entertaining.
- ð Data type compatibility: Strings, integers, floats, bytes, slices, maps, you name it! G is the life of the party, mingling with all your favorite data types.
- ð§ Customize and extend: Need something extra? G is your best buddy, ready to be extended or modified to suit any project.
- ð Docs & examples: We're not just about fun and games, we've got detailed documentation and examples that'll have you smiling from ear to ear as you learn the G way.
Take your Go projects to a whole new level of excitement with G! It's time to stop coding like it's a chore and start coding like it's a celebration! ðĨģ
Examples
Generate a securely random string.
stdlib | g |
---|---|
|
|
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead. This function is useful when you want to provide a fallback value for keys that may not be present in the map.
stdlib | g |
---|---|
|
|
Copy copies the contents of the current directory to the destination directory.
stdlib | g |
---|---|
|
|
RandomSample returns a new slice containing a random sample of elements from the original slice.
stdlib | g |
---|---|
|
|