MCPcopy Index your code
hub / github.com/adhocore/chin

github.com/adhocore/chin @v1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.0 ↗ · + Follow
13 symbols 31 edges 2 files 6 documented · 46%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

adhocore/chin

Go Report Lint Donate 15 Donate 25 Donate 50 Tweet

A GO lang command line tool to show a spinner as you wait for some long running jobs to finish.

This is a simple project but carries a tremendous value to me [❤️].

Usage

Install chin:

go get -u github.com/adhocore/chin

Use in Go code with WaitGroup:

var wg sync.WaitGroup

s := chin.New().WithWait(&wg)
go s.Start()

// invoke some long running task
// (you can also call s.Stop() from that task)
longTask(&wg)

s.Stop()
wg.Wait()

Refer example for more (there is also one without waitgroup).

To run the examples: go run examples/main.go

Screen

CHIN


Other projects

My other golang projects you might find interesting and useful:

  • gronx - Lightweight, fast and dependency-free Cron expression parser (due checker), task scheduler and/or daemon for Golang (tested on v1.13 and above) and standalone usage.
  • urlsh - URL shortener and bookmarker service with UI, API, Cache, Hits Counter and forwarder using postgres and redis in backend, bulma in frontend; has web and cli client.
  • fast - Check your internet speed with ease and comfort right from the terminal. (It uses adhocore/chin.)
  • goic - Go Open ID Connect, is OpenID connect client library for Golang, supports the Authorization Code Flow of OpenID Connect specification.

Core symbols most depended-on inside this repo

New
called by 2
chin.go
Start
called by 2
chin.go
Stop
called by 2
chin.go
tput
called by 2
chin.go
longTask
called by 2
examples/main.go
WithWait
called by 1
chin.go
doSpin
called by 1
chin.go
demo
called by 1
examples/main.go

Shape

Function 8
Method 4
Struct 1

Languages

Go100%

Modules by API surface

chin.go7 symbols
examples/main.go6 symbols

For agents

$ claude mcp add chin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact