Skip to content

waleed318/Golang-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang-getting-started

Why I am learning devops?

I want to learn Devops as I have noticed It's an emerging field. I have watched roadmap of Devops and noticed that most of the tools of devops are made in Golang. So I made a practice project to learn basics of golang. Created Web Server in Golang

  • Home Page

Home

  • Add Product page

AddBooks

  • Store Product Data Structure

What's the project is about?

This is a basic Library Book shelf Management system it adds book in 2 dimensional map and displays them in order. Asks about the name of the book, author of the book and published date.

Things I learnt about golang

  • 🌱 Golang is statically typed but feels like dynamic(e.g you don't have to specify the variable's datatype)

  • 👯 Golang does not strictly support object orientation but it has lightweight OOP

    • 💼 Go lang has methods to implement Object oriented Programming
    • 🥢 Go Methods are similar to go functions with minor difference
    • 🔧 Methods Contain a reciever argument in it
  • 🤝 Golang has concurrency which makes him faster than any other language

  • 👌 Fast compiled time

  • There are four types of data structures in Go(arrays,slices,map,struct):

    • 👍 Arrays are used to store fixed numbers of elements.
    • 👐 In Slices, no need to specify length
    • 💪 Maps are key value pair to an element.
    • 😍 Structs are go's OOP

How to run Project

Clone the project

$ git clone https://github.com/waleed318/Golang-getting-started.git

For this Project I have used mongoDB. Here is the complete documentation

Change directory to Golang-getting-started

$ cd Golang-getting-started

Build the project

$ go build

Run the main.go file

$ go run main.go

@Data science, python devloper, tech enthusiast, learning devops

💬 Ask me about Python, Data Science

📫 How to reach me [email protected]

Connect with me:

waleedahmed318 @waleed-ahmad03

Languages and Tools:

aws docker gcp go jenkins kubernetes python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published