-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Goshot can be installed either as a CLI tool for command-line usage or as a library for integration into your Go projects. This guide covers both installation methods and their requirements.
Before installing Goshot, ensure you have:
- Go 1.21 or later installed
- Git (for installation from source)
Note
The CLI tool is a work in probress, but should be more or less functional.
The CLI tool allows you to create code screenshots directly from your terminal.
go install github.com/watzon/goshot/cmd/goshot@latest
Note: The CLI tool is currently under development. Some features might be limited or in beta.
After installation, verify that Goshot is properly installed by running:
goshot --version
To use Goshot as a library in your Go projects:
go get github.com/watzon/goshot
import "github.com/watzon/goshot"
If you want to build Goshot from source:
-
Clone the repository:
git clone https://github.com/watzon/goshot.git cd goshot
-
Build the CLI tool:
go build ./cmd/goshot
If you encounter any issues during installation:
-
Ensure your Go version is up to date:
go version
-
Check that your
GOPATH
is correctly set:echo $GOPATH
-
Make sure the Go bin directory is in your
PATH
:echo $PATH
For additional help, please open an issue on the GitHub repository.
- 📥 Installation
- 🚀 CLI Usage (coming soon)
-
🤝 Contributing
- Code of Conduct
- Development Workflow
- Project Structure
- Guidelines
- Testing
- Documentation