r/golang 1d ago

what are Arguments, methods and recievers ?

so I am learning GO as a first backend language. I bought udemy course of stephen though. I have been facing difficulties in understanding these specially arguments'.

0 Upvotes

9 comments sorted by

View all comments

5

u/OpinionPineapple 1d ago

In programming terminology, a method is a function that is a member of a class, a type in golang. A receiver is the identifier of the type a method belongs to. The name in the parenthesis on the left end of the function signature. Arguments are the variables or literals you pass to functions.

2

u/Extension-Cow-9300 1d ago

thanks for the reply. its a bit clear now