Go

Wed Dec 2 11:50:41 AM PST 2020

I need to go find my noted and get them in this file

Interfaces

Interfaces in Golang provides a list of Function Signatures that are required to be implemented by any “struct” in order to work with specified Interfaces.

Interfaces can be used as “types” in Golang, which mean that we can create variables of type “interface” and any struct that fulfils the functional contract of the Interface can be assigned to this “interface” variable.

-> Rest API building This is going to be my first Blog post that I’m writing as an article.
-> I’m going to do these notes right here I think but maybe these should be in their own file and then I can just bring over the bit I want in my Go Journal.

Talk about Mux -> a locker for safety.

context

GoLang context package defines the Context type: -? circular? which carries: @. deadlines, @. cancelation signals, and @. other request-scoped values

-> across API boundaries and between processes.

-> Incoming requests to a server should -> create a Context, and -> Outgoing calls to servers -> should accept a Context.

-> The chain of function calls between them must propagate the Context.

Two important contexts here are Cancellation & Propagation.



Archive -->