Compare commits

...

2 Commits

Author SHA1 Message Date
3953b55ce6
Remove Making a web api 2021-09-01 16:42:01 +01:00
c6d3c97d86
docker nginx: Add syntax highlighting 2021-09-01 16:41:41 +01:00
2 changed files with 3 additions and 12 deletions

View File

@ -22,7 +22,7 @@ Notice how `certbot`'s `entrypoint` field is commented out?
Yeah, that's one of the things that tripped me up. Yeah, that's one of the things that tripped me up.
When the autorenew entrypoint is specified, you can't perform one of the future steps. When the autorenew entrypoint is specified, you can't perform one of the future steps.
``` ```yaml
version: '3' version: '3'
services: services:

13
go.md
View File

@ -10,22 +10,13 @@ tags: [ golang, programming ]
Probably the most useful resoure I found was the [Tour of Go](https://tour.golang.org/). Probably the most useful resoure I found was the [Tour of Go](https://tour.golang.org/).
It's easy to understand and teaches you all you need to know. It's easy to understand and teaches you all you need to know.
# Making a web api
> We need to memorize the `Handler` interface.
>
> type Handler interface {
> ServerHTTP(ResponseWriter, *Request)
> }
# `godoc` [^golang-godoc] # `godoc` [^golang-godoc]
> Godoc parses Go source code - including comments - and produces documentation as HTML or plain > Godoc parses Go source code - including comments - and produces documentation as HTML or plain
> text. > text.
> The end result is documentation tightly coupled with the code it documents. > The end result is documentation tightly coupled with the code it documents.
> For example, through godoc's web interface [which is at <http://localhost:6060> by default] you can > For example, through godoc's web interface [which is at <http://localhost:6060> by default] you
> navigate from a function's documentation to its implementation with one click. > can navigate from a function's documentation to its implementation with one click.
## Installing godoc // `command not found: godoc` ## Installing godoc // `command not found: godoc`