We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hope go could support infer generic type from variable type
func main() { var x Person = get() // to replace var x = get[Person]() fmt.Println(x) } func get[T any]() T { var x T return x }
Status