DEV Community

Cover image for Creating a Hello World in Go with Zed πŸ™‹β€β™‚οΈπŸŒŽ
Assis Zang
Assis Zang

Posted on

Creating a Hello World in Go with Zed πŸ™‹β€β™‚οΈπŸŒŽ

Zed is a high-performance code editor (IDE) πŸš€ developed by the creators of Atom and Tree-sitter.

It is currently available in beta and is exclusive to Mac users 🍎.

πŸ“ŒThis tutorial considers that you already have Go configured on your machine, if you don't already have it, do it right now: Installing Go.

To create a Hello World in Go just follow the steps below:

  1. Create a file called main.go, then put the code below in it:
package main

import "fmt"

func main() {
    fmt.Println("Hello, world!")
}
Enter fullscreen mode Exit fullscreen mode
  1. Open the terminal and execute the go run main.go command as shown in the image below:

Hello world in terminal

...And a new Hello world has just been born πŸ₯³πŸŽ‰.

Although Zed is still in a beta version, it already has several cool features, such as collaboration with your team in integration with GitHub and others…

Cover image made with Canva.

Top comments (0)