to save up a progress
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user