Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 640 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 640 Bytes

Utils

Utils is a package created for handling input in the terminal. It's similar to the input() function in Python.

Installation

You can install the package using the command below

go get github.com/inuoshios/utils

Import the package

import "github.com/inuoshios/utils"

Example

package main

import "fmt"

func main() {
    // print out my github username

    ghUsername := utils.Input("GH Username")

    fmt.Printf("Welcome %s", ghUsername)

    // Prints: Welcome {the ghUsername you inputed}
}

Contributions

PRs are accepted. You can also create a new issue if necessary.