Assuming you are wanting user input from the terminal, fmt.Scan and fmt.Scanf.
Another method was shared in Creating a simple "read number from STDIN" demo
Assuming you are wanting user input from the terminal, fmt.Scan and fmt.Scanf.
Another method was shared in Creating a simple "read number from STDIN" demo