Syntax

Go Start a Goroutine Syntax

In Go, start a goroutine: runs a function concurrently — go work()

Quick Answer

Syntax
go work()
GoSyntax

Start a Goroutine

Code example
go work()

Runs a function concurrently.

Learn More

How to start a goroutine in Go

  1. Open your Go file or editor.
  2. Copy the example, then replace its sample names and values for your code.

Go Start a Goroutine Syntax

Use go work().

Related Syntax References

Frequently asked questions

What is the Go syntax for start a goroutine?

Use this pattern: go work()

Can I copy this Go code example?

Yes. Use Copy code and adapt the example to your program.

Is this Go syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify