2024-01-22 14:23:12 +01:00
|
|
|
package main
|
|
|
|
|
2024-01-24 06:56:48 +01:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"strings"
|
|
|
|
)
|
2024-01-22 14:23:12 +01:00
|
|
|
|
|
|
|
func startup(number float64) {
|
2024-01-24 06:56:48 +01:00
|
|
|
// Oh man I gotta use another library, strings lets me trim pretty easily any string and since bufio
|
|
|
|
// seems to append newlines to everything I'm gonna have to make use of this
|
|
|
|
fmt.Printf("Alright %s, give me a number, I will tell you if it's between 1 and 10\n", strings.TrimRight(name, "\n"))
|
2024-01-22 14:23:12 +01:00
|
|
|
fmt.Printf("Number: ")
|
|
|
|
fmt.Scan(&num)
|
|
|
|
return
|
|
|
|
}
|