https://github.com/johnmccabe/go-bitbar
Go library for building BitBar plugins
https://github.com/johnmccabe/go-bitbar
bitbar bitbar-plugin go golang golang-library
Last synced: 23 days ago
JSON representation
Go library for building BitBar plugins
- Host: GitHub
- URL: https://github.com/johnmccabe/go-bitbar
- Owner: johnmccabe
- License: mit
- Created: 2017-09-11T22:05:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T13:35:14.000Z (almost 4 years ago)
- Last Synced: 2025-05-07T17:12:38.175Z (23 days ago)
- Topics: bitbar, bitbar-plugin, go, golang, golang-library
- Language: Go
- Homepage:
- Size: 45.9 KB
- Stars: 49
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[![Travis Badge]][Travis]
[![Go Report Card Badge]][Go Report Card]
[![GoDoc Badge]][GoDoc]This repo contains a package for creating [BitBar](https://github.com/matryer/bitbar) plugins in Go.
## Usage
Creating a BitBar plugin is as simple as (see the [godocs](https://godoc.org/github.com/johnmccabe/go-bitbar) for more details):
```go
package mainimport "github.com/johnmccabe/go-bitbar"
func main() {
app := bitbar.New()
app.StatusLine("Hello")submenu := app.NewSubMenu()
submenu.Line("World!")app.Render()
}
```## Examples
- [vmpooler-bitbar](https://github.com/johnmccabe/vmpooler-bitbar) is used to monitor and manage VMs running on [Puppetlabs vmpooler](https://github.com/puppetlabs/vmpooler)
- [openfaas-bitbar](https://github.com/johnmccabe/openfaas-bitbar) is used to monitor and manage functions running on [OpenFaaS](https://github.com/openfaas/faas)
- *If you are using [go-bitbar](https://github.com/johnmccabe/go-bitbar) please reach out to be added to this list*[Travis]: https://travis-ci.org/johnmccabe/go-bitbar
[Travis Badge]: https://travis-ci.org/johnmccabe/go-bitbar.svg?branch=master
[Go Report Card]: https://goreportcard.com/report/github.com/johnmccabe/go-bitbar
[Go Report Card Badge]: https://goreportcard.com/badge/github.com/johnmccabe/go-bitbar
[GoDoc]: https://godoc.org/github.com/johnmccabe/go-bitbar
[GoDoc Badge]: https://godoc.org/github.com/johnmccabe/go-bitbar?status.svg