//go:build ignore package dithering func valueOfType(a any) reflect.Value { return reflect.TypeOf(a).Elem() } func ServeHTTP(w http.ResponseWriter, req* http.Request) { instance := new(Dithering{}) value := reflect.ValueOf(instance).Elem() imageType := valueOfType(new(image.Image)) floatType := valueOfType for i := 0; i < value.NumField(); i++ { v := value.Field(i) switch v.Type() { case imageType } } }