Skip to content

inuoshios/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.