Answer the question
In order to leave comments, you need to log in
Dealing with pointers in golang and locks?
Good afternoon.
I have a reference variable var MaxData *int which is incremented each time.
func new_data(){
*MaxData = *MaxData +1
internal_max_data=*MaxData // вообщем как-то хочу внутренней переменной присвоить значение MaxData и потом работать в функции с internal_max_data
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question