Help us shape the future of Go! Take the 2026 Go Developer Survey

fast

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 1 Imported by: 2

README

adhocore/fast

Go Report Donate Tweet

A GO lang command line tool to check internet speed right from the terminal.

Uses fast.com through headless chrome.

Prerequistie

Chrome browser must be installed. chromedp will try to locate the chrome executable automatically from these paths.

If you get error regarding chrome availability, and you have chrome in custom path then check Troubleshooting.

Usage

Install fast:

go get github.com/adhocore/fast/cmd/fast

Finally, make sure $GOPATH or $HOME/go/bin is in your $PATH or %path%, then run:

fast

Wait a while or Ctrl+C if you can't. That's all.

Screen

FAST

Troubleshooting

In MacOS, you can do something like this:

echo '#!/bin/sh\n\n/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $@' > /usr/local/bin/chrome

chmod +x /usr/local/bin/chrome

In WSL, you can symlink chrome from host WinOS like this:

sudo ln -s /mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe /usr/local/bin/chrome

In other OS, you can do something equivalent to above. The idea is chrome command should point to Chrome Browser.


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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
fast command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL