On Thu, Feb 13, 2025 at 2:12 PM Jabari Zakiya <jzak...@gmail.com> wrote:
>
> I want to input an integer directly after the function
>
> $ ./myfunction n (CR)
>
> not
>
> $ ./myfunction (CR)
>     n (CR)
>
> None of my search results  explains how to do this.

Sounds like you want to look at os.Args, which will contain the
arguments passed to your program on the command line.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUjARiQT4-NBQjS_VNOG%3Dr0T8v0wY3maache88KrAxLCA%40mail.gmail.com.

Reply via email to