https://github.com/alexcoder04/friendly
Go utils library
https://github.com/alexcoder04/friendly
friendly go go-friendly golang learning library misc miscellaneous simple utils utils-library
Last synced: 14 days ago
JSON representation
Go utils library
- Host: GitHub
- URL: https://github.com/alexcoder04/friendly
- Owner: alexcoder04
- License: gpl-3.0
- Created: 2022-07-24T15:08:52.000Z (almost 3 years ago)
- Default Branch: v2
- Last Pushed: 2025-05-01T15:30:03.000Z (2 months ago)
- Last Synced: 2025-05-01T16:36:53.191Z (2 months ago)
- Topics: friendly, go, go-friendly, golang, learning, library, misc, miscellaneous, simple, utils, utils-library
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Friendly Go
[](https://github.com/alexcoder04/friendly/blob/main/LICENSE)
[](https://github.com/alexcoder04/friendly/blob/main/go.mod)
[](https://github.com/alexcoder04/friendly/pulse)
[](https://github.com/alexcoder04/friendly/releases/latest)
[](https://github.com/alexcoder04/friendly/stargazers)
[](https://github.com/alexcoder04/friendly/graphs/contributors)A library with functions I use all the time in my projects.
Also useful if you are starting to learn Go and are annoyed by implementing basic things in your project all the time.
## Install and Use
**Warning:** the `v1` version is deprecated, please use `friendly/v2` instead.
In your project directory, type
```sh
go get github.com/alexcoder04/friendly/v2
# or `go get github.com/alexcoder04/friendly/v2/...` depending on the sub-package you need
```And then, in your code
```go
package ...import (
...
"github.com/alexcoder04/friendly/v2"
"github.com/alexcoder04/friendly/v2/ffiles"
)...
folder, _ := friendly.Input()
if ffiles.IsDir(folder) {
friendly.CompressFolder(folder, destination)
}
...
```## Documentation
The documentation can be found on `pkg.go.dev`:
- [`alexcoder04/friendly/v2`](https://pkg.go.dev/github.com/alexcoder04/friendly/v2)
- [`alexcoder04/friendly/v2/ffiles`](https://pkg.go.dev/github.com/alexcoder04/friendly/v2/ffiles)
- [`alexcoder04/friendly/v2/flinux`](https://pkg.go.dev/github.com/alexcoder04/friendly/v2/flinux)## Contributing
If you use this library and are missing some feature - don't hesitate to open a
pull request or an issue, I'm always looking forward to improve this project!