Spot the bug in the IsNil helper

from reflect.Type and reflect.Value
Go 1.27 intermediate 4 min 1 issue to find

Find why this nil helper panics for ordinary values.

Go
package main

import "reflect"

func IsNil(input any) bool {
    value := reflect.ValueOf(input)
    return value.IsNil()
}

func main() {
    println(IsNil(3))
}
Open in playground
Report an error