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 (2)

Collapse
 
cedric_tineo_6de21002e455 profile image
Cedric Tineo

can you make the article shorter, it still has a tiny bit of value (not much. Would be even a greater waste of time if it contained just a tiny bit less. Posting everyday for seo is great. Posting content without value is wasting people's time.

Collapse
 
beard_programmer profile image
Viktor Shinkevich

Totally agree, insta tldr to me.

That chatgpt era...