Add Go (Golang) language support to func init via the Native worker runtime#4854
Open
harshivcodes wants to merge 5 commits intofeature/native-lang-supportfrom
Open
Add Go (Golang) language support to func init via the Native worker runtime#4854harshivcodes wants to merge 5 commits intofeature/native-lang-supportfrom
harshivcodes wants to merge 5 commits intofeature/native-lang-supportfrom
Conversation
harshivcodes
commented
Apr 14, 2026
liliankasem
reviewed
Apr 15, 2026
liliankasem
reviewed
Apr 15, 2026
added 2 commits
April 16, 2026 15:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Go language support to the
func initcommand in Azure Functions Core Tools. Go is supported under the Native worker runtime, which hosts language-native binaries directly. When a user runsfunc init --worker-runtime native, the CLI scaffolds a complete Go project with module initialization, dependency resolution, and a startermain.go.Core runtime registration
Go project scaffolding (GoHelpers.cs)
Static resources
InitAction integration
Testing
--worker-runtime nativeFUNCTIONS_WORKER_RUNTIME: "native"set;go.mod+go.sumpresent--worker-runtime go--worker-runtime golang--skip-go-mod-tidygo.sumstill exists (fromgo get)test-go-5--forcein non-empty directorydummy.txtpreserved alongside all new files--dockerOutput from local testing
test-results.txt