mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: replace interface{} with any
This commit is contained in:
@@ -47,7 +47,7 @@ func (customHeaderBinding) Name() string {
|
||||
}
|
||||
|
||||
// Bind will bind struct fields to HTTP headers using the configured mapping.
|
||||
func (b customHeaderBinding) Bind(req *http.Request, obj interface{}) error {
|
||||
func (b customHeaderBinding) Bind(req *http.Request, obj any) error {
|
||||
value := reflect.ValueOf(obj).Elem()
|
||||
tValue := reflect.TypeOf(obj).Elem()
|
||||
if value.Kind() != reflect.Struct {
|
||||
|
||||
Reference in New Issue
Block a user