Your cart is currently empty!
Author: Website Admin
Vim: External Command
Insert from other file Insert command result Output to external command. If you do not define the range, then by default, it will use all lines (1, $) in the file as an input for that command. Running external command
Vim: Fold
Mode manual Manually define fold range. indent Automatic make the folds based on indent. syntax Automatic make the folds based on your file extension. expr Use :set foldexpr=TODO. marker Manually define fold range and add a marker. diff vim -d file1 file2vimdiff file2 file2:set diffopt=filler,context:0 Operator zf{motion} Define fold using motion. zfiB, zfib, zfi[, zfj…
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: