Pointer Receivers - Go Lang Practical Programming Tutorial p.8

Welcome to part 8 of the Go programming tutorial series, where we’re talking about methods in Go lang. So far, we’ve used our car type example, showing how we could calcuate the vehicle’s speed using a value receiver method. What if we wanted to actually modify the object with a method? How might we do that? To do this, we use a pointer receiver. Text tutorials and sample code:
Back to Top