Deploy golang service to Google Cloud

We will be using Google Cloud Run with the help of a Dockerfile. First, let’s say you have an application like this (main.go file below) Then you’ll need to create a Dockerfile in your directory (same as main.go): Then we can run this command (with Google Cloud SDK installed). myservice is the new name of …

Visual Code – Make it possible to Run Program

To configure so that you can run your program without any commands in Visual Code, then you simply need a launch.json file. Start by creating a folder inside your workspace named .vscode. You can create a workspace by selecting Save Workspace As… in Visual Code under File in the top left corner if you don’t …