Skip to main content

Hello World

Overview

This section shows how to create a simple HTTP service using go-zero.

Sample

Name: HelloWorld.api
Host: 127.0.0.1
Port: 8080

rest service configuration accessible HTTP service configuration

Can start a simple HTTP service in addition to using the above method

  1. Quickly create a HTTP service with goctl: goctl api new
  2. Quickly create and start a HTTP service with goctl, with reference goctl quickstart

References