An open API service indexing awesome lists of open source software.

https://github.com/gowebexamples/gowebexamples

Go Web Examples Generator
https://github.com/gowebexamples/gowebexamples

go golang hugo snippets webdev

Last synced: about 1 month ago
JSON representation

Go Web Examples Generator

Awesome Lists containing this project

README

        

# Go Web Examples

[Go Web Examples](https://gowebexamples.com/) provides easy to understand snippets on how to do web development in Go and is inspired by [Go By Example](https://gobyexample.com/), which has a great introduction into the fundamentals of this language.

Go Web Examples is hosted on: https://gowebexamples.com/

## Examples

There are currently tutorials and examples of the following topics:

- [Hello World](https://gowebexamples.com/hello-world/)
- [HTTP Server](https://gowebexamples.com/http-server/)
- [Routing (using gorilla/mux)](https://gowebexamples.com/routes-using-gorilla-mux/)
- [Templates](https://gowebexamples.com/templates/)
- [Requests and Forms](https://gowebexamples.com/forms/)
- [Assets and Files](https://gowebexamples.com/static-files/)
- [Basic Middleware](https://gowebexamples.com/basic-middleware/)
- [Advanced Middleware](https://gowebexamples.com/advanced-middleware/)
- [Sessions](https://gowebexamples.com/sessions/)
- [JSON](https://gowebexamples.com/json/)
- [Websockets](https://gowebexamples.com/websockets/)
- [Password Hashing (bcrypt)](https://gowebexamples.com/password-hashing/)

## Building

The site is built using the [Hugo](https://github.com/spf13/hugo) static site generator.
The source codes to the examples can be found in the `content` directory.
When you build the site using the `hugo` command, the output files will be generated into the `public` directory.

To build this site Hugo and Python (with `pygments` installed) will be required.

```console
$ git clone https://github.com/gowebexamples/gowebexamples.git
$ cd gowebexamples
$ hugo
```

## Thanks

Thanks to [Go By Example](https://gobyexample.com/) for the inspiration to this project.

## License

MIT