translated reflect.MakeInt, .MakeFunc and .Set to Go