Starter Guide
Before we get started, one thing you should know is that this documentation does not teach you how to use Go. Instead, we will explore Macaron based on the basic Go knowledge you already have.
To install Macaron:
And upgrade Macaron in the future:
Minimal Example
Create a file called main.go
, and type following code:
Then, execute command go run main.go
, you should see a log message is printed to the console:
Extended Example
Let’s modify the main.go
and do some extended exercises.
If you execute command go run main.go
again, you’ll see string the request path is: /
is on your screen.
So what’s different now?
Go Further
You now know about how to write simple code based on Macaron, please try to modify two examples above and make sure you fully understand the words you read.
When you feel comfortable, get up and keep reading on following chapters.
Last updated
Was this helpful?