diff --git a/documentation/docs/index.md b/documentation/docs/index.md index b36e2d1b..77c1e92c 100644 --- a/documentation/docs/index.md +++ b/documentation/docs/index.md @@ -14,6 +14,10 @@ Let's discover **Fuego in less than 5 minutes**. Try our [Hello World](./tutorials/01-hello-world.md)! +```bash +go run github.com/go-fuego/fuego/examples/hello-world@latest +``` + Or **try Fuego immediately** by cloning **[one of our exemples](https://github.com/go-fuego/fuego/tree/main/examples)**. ### What you'll need diff --git a/documentation/docs/tutorials/01-hello-world.md b/documentation/docs/tutorials/01-hello-world.md index 625ef7ef..06cf63b7 100644 --- a/documentation/docs/tutorials/01-hello-world.md +++ b/documentation/docs/tutorials/01-hello-world.md @@ -6,7 +6,19 @@ order: 1 # Hello world -How to write Hello World with Fuego. +Let's discover **Fuego** in a few lines. + +## Run + +If you don't want to copy/paste the code on your local setup, you can run the following command: + +```bash +go run github.com/go-fuego/fuego/examples/hello-world@latest +``` + +Useful URLs are given in the terminal, you'll be able to see the result in your browser. + +## Code ```go package main @@ -24,5 +36,4 @@ func main() { s.Run() } - ```