Skip to content

Commit

Permalink
[SLIDES] update slide date, and remove 3rd party references
Browse files Browse the repository at this point in the history
  • Loading branch information
PatAkil committed Nov 3, 2024
1 parent d58e394 commit 70afdbe
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions go-training.slide
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Learning go
January 25th, 2024
November 4th, 2024
Tags: go golang xebia

Patrick Akil
Expand All @@ -19,7 +19,7 @@ https://www.linkedin.com/in/patrick-akil-721b07105/

- IoT, Ecommerce, Health Tech
- Effectiveness: organisational, team and personal
- Running golang in production @Wavin, @Duxxie & more!
- Running golang in production @Wavin, @Action, @Duxxie & more!

#----------------------------------------------

Expand Down Expand Up @@ -215,7 +215,7 @@ Verify go:

$ go version

At least version go1.18
At least version go1.23

No output means something's missing!

Expand Down Expand Up @@ -867,7 +867,7 @@ io.Writer-interface:
#----------------------------------------------

* Interface <interfaces>
- Naming convention: ends with "er"
- Naming convention: ends with "er". Doesn't happen too much in practise 😅
- Keep them small. Why?
- Composable

Expand Down Expand Up @@ -1985,7 +1985,6 @@ Tips:
- Methods: POST, PUT, DELETE, GET AND HEAD
- Url: REST-ful?
- Payload: Json, XML
- Middleware for non-functionals (CORS, Auth, Monitoring)
- Response status-code and error-message

Based on Swagger/OpenApi-spec?
Expand Down Expand Up @@ -2036,28 +2035,6 @@ Standard library provides API:
}


#----------------------------------------------
* 3rd party routers

- Advanced routing capabilities such as grouping
- Better middleware support
- Examples:
- gorilla/mux
- go-chi/chi


#----------------------------------------------

* Middleware <middleware>

- Like Java "servlet filters"

Example with "Alice"

.code examples/middleware/main.go /START OMIT/,/END OMIT/

- Later more on middleware functions

#----------------------------------------------

* Exercise: http server
Expand Down

0 comments on commit 70afdbe

Please sign in to comment.