val := reflect.ValueOf(&struct{}) for i := 0; i < val.NumMethod(); i++ { name := val.Type().Method(i).Name }