factordb-go

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2017 License: MIT Imports: 7 Imported by: 0

README

FactorDB CLI

CircleCI AppVeyor license Codecov Github All Releases

The FactorDB is the database to store known factorizations for any number. This tool can use on your command line. Although I have already written factordb-pycli with Python before, I want to use this tool on several platforms like on Windows machine and ARM Linux.

Build & Installation (on macOS)

If you use macOS, you should follow the instruction.

Requirements
  • Go >= 1.8
  • glide
$ brew install go glide
Build
$ make deps
$ make
$ bin/factordb --help
NAME:
   factordb - The CLI for factordb.com

USAGE:
   factordb [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --json         Return response formated JSON
   --help, -h     show help
   --version, -v  print the version

After installation, you should copy a binary to your PATH.

Windows

Download pre-build binary from here.

Platform Status
Windows AppVeyor

CLI

If you want to know the result of factorization of 16, you should type like this:

$ factordb 16
2 2 2 2

If you want to know more detail of result, you can get an answer of JSON format.

$ factordb --json 16
{"id": "https://factordb.com/?id=2", "status": "FF", "factors": [2, 2, 2, 2]}

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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