Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skeptycal/gorepo
gorepo version v0.1.0- software for macOS
https://github.com/skeptycal/gorepo
Last synced: 3 days ago
JSON representation
gorepo version v0.1.0- software for macOS
- Host: GitHub
- URL: https://github.com/skeptycal/gorepo
- Owner: skeptycal
- Created: 2021-03-15T01:54:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-15T03:40:15.000Z (over 3 years ago)
- Last Synced: 2024-06-20T06:26:43.924Z (5 months ago)
- Language: Go
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: licenses.json
Awesome Lists containing this project
README
# gorepo
>Tricky and fun ansi text utilities for Go programs. The obligatory ANSI CLI module predominantly from the Go standard library.
---
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/skeptycal/gorepo/Go) ![Codecov](https://img.shields.io/codecov/c/github/skeptycal/gorepo)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](code-of-conduct.md)![Twitter Follow](https://img.shields.io/twitter/follow/skeptycal.svg?label=%40skeptycal&style=social) ![GitHub followers](https://img.shields.io/github/followers/skeptycal.svg?style=social)
---
## Getting Started
### Prerequisites
Developed with Go 1.15.5 darwin/amd64 (macOS Big Sur)
Tested on Go 1.13+---
### Installation
The easiest way is to clone the repository with Go and install from there.
```bash
# add repo to $GOPATH
go get github.com/skeptycal/anansicd ${GOPATH}/src/github.com/skeptycal/anansi
go test -v
go install
```
---
### Basic Usage
>This is a copy of the sample script available in the `sample` folder:
```go
package mainimport "github.com/skeptycal/anansi"
func main() {
anansi.Sample()
}```
To try it out:
```bash
# change to the sample folder
cd sample# run the main.go program
go run ./main.go# You should see the following output demonstrating various color combinations.
```![sample foreground colors](sample/sample_fg.jpg)
![sample foreground colors](sample/sample_bg.jpg)---
## Code of Conduct and Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. Please read the [Code of Conduct](CODE_OF_CONDUCT.md) for details before submitting anything.
---
## Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
---
## Contributors
- Michael Treanor ([GitHub][github] / [Twitter][twitter]) - Initial work, updates, maintainer
- [Francesc Campoy][Campoy] - Inspiration and great YouTube videos!See also the list of contributors who participated in this project.
>Much of the basic types, constants, and terminal checks in 'anansi_const.go' are based on the very popular and well documented [color package][fatih].
---
## License
Licensed under the MIT - see the [LICENSE](LICENSE) file for details.
[twitter]: (https://www.twitter.com/skeptycal)
[github]: (https://github.com/skeptycal)
[Campoy]: (https://github.com/campoy)
[fatih]: (https://github.com/fatih/color)