Skip to content

A VERY simple golang library that makes using scanners/taking input easier.

Notifications You must be signed in to change notification settings

JungleHornet/goscan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

A simple go library to make taking input/using scanners easier.

How to use: NewScanner() will return a new scanner. scanner.ReadLine() will read a line of user input from the console.

Example:

package main

import (
    "fmt"
    "github.com/junglehornet/goscan"
)

func main() {
s := goscan.NewScanner()
input := s.ReadLine() // The program will wait for user input then store it in the variable 'input'.
fmt.Println(input) // The program will then print the user's input in the console:
}

About

A VERY simple golang library that makes using scanners/taking input easier.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages