keyboard

package module
v0.0.0-...-d208f09 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

README

Go Keyboard Package from Head First Go

As of Chapter 4, this includes a GetFloat function that receives a float number from user input.

I have personally added function GetString which also uses GetFloat.

Documentation

Overview

Package keyboard reads user input from the keyboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat

func GetFloat() (float64, error)

GetFloat reads a floating-point number from the keyboard. It returns the number read and any error encountered.

func GetString

func GetString() (string, error)

GetString reads a string from the keyboard. It returns the string read and any error encountered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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