This repo is prepared for basic and intermediate understanding of Go Programming Language. The workspace of the codes written here is Visual Studio Code. You can find the download link in the KEY POINTS section. You also need to download to install Go in Visual Studio Code. Its link is also in the KEY POINTS section.
NOTES => The folders named Ubn-Homeworks and Ubn-Lessons are files that I learned from another software site and passed to the code.
- variables
- conditionals
- loops
- arrays
- slices
- functions
- maps
- for_range
- pointers
- structs
- goroutines
- channels
- interfaces
- defer_statement
- error_handling
- string_functions
- restful
- project
-
Go Download Link: Golang
- Click on the one appropriate for your computer and it will download.
-
Visual Studio Code Download Link: Visual Studio Code
- Click on the one appropriate for your computer and it will download.
Module Creation :
C:\StudysGolang> go mod init <module name>
- NOTE => You can replace with any module name you want.
Create A Folder :
C:\> mkdir goWorks --> C:\> cd goWorks
Terminal Output :
C:\StudysGolang> go run main.go
Install JSON Server :
C:\StudysGolang> npm install -g json-server
- ATTENTION! => If you get an error in JSON Server installation, install it from Node.js , close and reopen your workspace.
Running The JSON Server :
C:\StudysGolang> json-server --watch db.json
- ATTENTION! => If it fails after running it, type
npx
followed by a space and thenjson-server --watch db.json
and run it again. - So like this :
C:\StudysGolang> npx json-server --watch db.json