GopherCalc

command module
v0.0.0-...-618aa7f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 1 Imported by: 0

README


GopherCalc

GopherCalc is a command-line calculator application built in Go using the Cobra library. It provides basic arithmetic operations such as addition, subtraction, multiplication, and division.

Installation

To use GopherCalc, you need to build the binary executable using the Go build command:

go build .

This will generate an executable file named GopherCalc in the current directory. You can then run this executable to use the calculator.

Usage

GopherCalc provides several commands for performing arithmetic operations. Here are the available commands:

  • Addition: Performs the addition operation for two numbers.
  • Subtraction: Performs the subtraction operation for two numbers.
  • Multiplication: Performs the multiplication operation for two numbers.
  • Division: Performs the division operation for two numbers.
Command Syntax
GopherCalc [command] [arguments]
Example Usage
# Addition
GopherCalc Addition 10 5

# Subtraction
GopherCalc Subtraction 10 5

# Multiplication
GopherCalc Multiplication 10 5

# Division
GopherCalc Division 10 5
Flags
  • -h, --help: Displays help information about GopherCalc and its commands.
  • -t, --toggle: Toggles a feature (example flag).
Command Usage

For detailed usage instructions for each command, you can use the --help flag:

GopherCalc [command] --help

License

This project is licensed under the MIT License.


Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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