Helper functions for golang's reflect package.