Your cart is currently empty!
Category: Uncategorized
Golang: Internal Folder
There is a special folder in Golang file structure. If you create packages inside folder called internal, then the packages cannot be exported/used outside the module. <root module>/internal/hello/hello.go <root module>/xxx/internal/hello/hello.go If you are trying to import the package inside the internal folder then you will get an error: use of internal package <root-module>/internal/hello not allowed…
Golang: Importing Local Module
Create a new golang project Create a main.go file We need to direct the module my-hello to our local folder ../hello folder where the go.mod file resides. Then we try to run our program To delete the module References:
Golang: Create Application
Create a folder name hello Initialize Golang module Create a folder (package) name english Create a file inside the english folder name a.go Go back to the root folder and create a file name x.go This should output Create a folder (package) name french Create a file inside the french folder name b.go Now we…
RabbitMQ: Delaying Message
Create a queue named delay with these parameters: Then create a queue named execute to process the message. References:
NvChad
Space-e Open NvimTree Ctrl-n Toggle NvimTree Space-fa:Telescope fd Telescope: Find files Ctrl-(w)h / (w)j / (w)k / (w)n Move between pane Ctrl-wq Close pane Tab:bn Next buffer Shift-Tab:bp Previous buffer Ctrl-v Open file in vertical split (NvimTree) Ctrl-x Open file in horizontal split (NvimTree) Ctrl-t Open file in tab (NvimTree) Space-x:bd Close tab (buffer) g?…
Bitbucket Pipelines SSH Keys
When you paste you SSH key, make sure you press an Enter after —–END OPENSSH PRIVATE KEY—–