directory
Version:
v0.0.0-...-9b13a0c
Opens a new window with list of versions in this module.
Published: Jun 25, 2025
License: MIT
Opens a new window with license information.
README
ΒΆ
/go-practical-apps
βββ main.go # Entry point of the project
βββ go.mod # Module file for dependencies
βββ go.sum # Checksum for dependencies
βββ README.md # Project documentation
β
βββ cli/ # π CLI Tool
β βββ cli_tool.go # CLI implementation using flag package
β
βββ api/ # π REST API
β βββ rest_api.go # REST API implementation with net/http
β
βββ scraper/ # πΈ Web Scraper
β βββ web_scraper.go # Scrapes web pages for links
β
βββ caching/ # πΎ Caching Mechanism
β βββ cache.go # In-memory cache with sync.RWMutex
β
βββ worker/ # β‘ Worker Pool
β βββ worker_pool.go # Concurrency with Goroutines & Channels
π Summary
Topic |
Key Concept |
CLI Tool |
flag.String() ,Β flag.Int() ,Β flag.Parse() |
REST API |
http.HandleFunc() ,Β http.ListenAndServe() |
Web Scraper |
golang.org/x/net/html ,Β html.NewTokenizer() |
Caching |
map ,Β sync.RWMutex |
Worker Pool |
goroutines ,Β channels ,Β sync.WaitGroup |
Directories
ΒΆ
Click to show internal directories.
Click to hide internal directories.