Please explain the below syntax, I found this below snippet from godoc. I understand Cookie
is function name and name
is its argument and return type are (*Cookie, error)
, the part I could not understand is (r *Request)
, What exactly this part signifies. By the way I am from OOP background.
func (r *Request) Cookie(name string) (*Cookie, error)
Aucun commentaire:
Enregistrer un commentaire