Affinity is not built in but is easy to manage with your own code - I've got a dinky Go program (that I don't publish as it's "my first Go program" level of quality seeing that's exactly what it is) ...