# Understanding Go 1.21 generics type inference

DevFeed: [Understanding Go 1.21 generics type inference](<https://devfeed.tech/articles/understanding-go-1-21-generics-type-inference-17808.md>)

Original publisher: [Read original article](<https://encore.dev/blog/go1.21-generics>)

Author: André Eriksson

Published: 2023-08-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [Inference](<https://devfeed.tech/topics/inference.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Release notes](<https://devfeed.tech/topics/release-notes.md>)

Tags: [examples](<https://devfeed.tech/tags/examples.md>), [go](<https://devfeed.tech/tags/go.md>), [inference](<https://devfeed.tech/tags/inference.md>), [release](<https://devfeed.tech/tags/release.md>)

## AI overview

This article explains the improvements to generic type inference in Go 1.21. It breaks down the release notes with examples, including inference for generic function arguments, assigned or returned generic functions, and generic interface types.

## Source excerpt

Breaking down the release notes, with concrete explanations and annotated examples