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
- Host: GitHub
- URL: https://github.com/gowebexamples/gowebexamples
- Owner: gowebexamples
- License: mit
- Created: 2017-02-04T16:10:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-10T14:18:04.000Z (over 1 year ago)
- Last Synced: 2024-11-12T17:47:16.545Z (7 months ago)
- Topics: go, golang, hugo, snippets, webdev
- Language: HTML
- Homepage: https://gowebexamples.com/
- Size: 1.25 MB
- Stars: 280
- Watchers: 8
- Forks: 46
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- go-awesome - Go Web Examples - Go Web Development Examples (Documentation / To Organize)
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