Skip to content

Commit

Permalink
docs: give command so users can directly see the result without copy/…
Browse files Browse the repository at this point in the history
…pasting
  • Loading branch information
EwenQuim committed Feb 8, 2024
1 parent bdb6d34 commit 8dc6318
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions documentation/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 13 additions & 2 deletions documentation/docs/tutorials/01-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,5 +36,4 @@ func main() {

s.Run()
}

```

0 comments on commit 8dc6318

Please sign in to comment.