Method Value Binding

2025-01-153 minTech Related
#golang

Receivers are auto-bound to methods.

Receiver is captured automatically.

Example:

fn := counter.Increment
fn()
fn()