Package routebsd supports reading interface addresses on BSD systems. This is a very stripped down version of x/net/route, for use by the net package in the standard library.