letsgo

module
v0.0.0-...-e89fb51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: GPL-3.0

README

LetsGo

I will be uploading here all my projects written in Go (or golang) in an attempt to showcase my self-learning of the language and hopefully help other fellow students

Projects available

Massive Cheat Sheet
What is it

It is a transcription of the 7 hours video from freeCodeCamp.org Learn Go Programming - Golang Tutorial for Beginners It contains all the snippets of code used to demonstrate what Go can do for you and some comments from myself to help you read the cheat sheet.

How to use

You will find 15 different topics spread over 19 functions in the main function (lines 19 - 39)

You can either:

  • Comment out the specific topic you want to test in the main function and then play around with the snippets in their corresponding lines, or
  • Grab the snippets and paste them into your scripts. If you are going to be watching the video, it may come in handy to copy-paste only the text shown on the screen into your IDE so you can try the same things Mike does in the video.
Basic concepts
What is it

Quick overview of the basics in Go. Currently available:

  • Calgolator. A simple calculator to showcase functions.
  • Concurrency. An example of how to use Go Routines and Channels.
  • Gobonacci. Fibonacci in our fave language.
  • GoFizzBuzz. Fizz-Buzz written in Go.
  • Interfaces. Grouping and promoting Structs into something else to create common methods.
  • Maps. The basic concepts of Maps (or "dicts" in Python, or "hashes" in Ruby, or "objects" in JavaScript...).
  • nmapCaller. Showcasing how to call other programs from Go.
  • Odd or even. Playing around with basic integers.
  • ReadingInput. Quick overview of how to read a stream of input.
  • ReadingWeb. Quick overview of how to read from the web.
  • Structs. The basic concepts of Maps in steroids... I mean Structs :)
How to use

The main purpose is to quickly consult the snippets of code to copy/paste, in a way more concise manner than consulting my Massive Cheat Sheet

Go Port Scanner
What is it

It is a simple Port Scanner written in Go to practice pointers, dereferencing and concurrency. It's in a primitive state so it only scans the localhost and doesn't take any input!

How to use

Simply do go run goPortScanner.go and it will scan your localhost

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL