On Saturday, May 22, 2021 at 6:36:30 PM UTC-4 Ian Lance Taylor wrote:

> On Sat, May 22, 2021 at 3:26 PM Mosleh Saeidi <[email protected]> 
> wrote: 
> > 
> > so what is the solution, I have a variable type is uint32, and now want 
> to convert a string to that variable ? 
>
> To convert a string to an integer see 
> https://golang.org/pkg/strconv/#ParseInt . 
>
> Ian 
>


For unsigned integers, s/ParseInt/ 
<https://golang.org/pkg/strconv/#ParseInt>ParseUint/ 
<https://golang.org/pkg/strconv/#ParseUint>

Peter
 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/bc10f9b0-32a5-4be5-af58-5d95f1bc88cdn%40googlegroups.com.

Reply via email to