Tag

flag

0 views collected around this technical thread.

Go Programming World
Go Programming World
May 4, 2024 · Backend Development

Deep Dive into Go's flag Package: Usage, Syntax, and Source Code Analysis

This article explains how to use Go's standard flag package for command-line argument parsing, demonstrates various flag definitions and parsing techniques, and provides an in‑depth analysis of its source code, including flag types, syntax, internal structures, and execution flow.

BackendParsingSource Code
0 likes · 18 min read
Deep Dive into Go's flag Package: Usage, Syntax, and Source Code Analysis
Python Programming Learning Circle
Python Programming Learning Circle
Jan 24, 2022 · Fundamentals

Techniques to Exit Nested Loops in Python

This article explains several Python techniques—using identical break conditions, flag variables, exceptions, loop‑else clauses, and function returns—to exit nested loops, demonstrated through a prime‑number game where the program stops when a non‑prime input is entered.

Exception HandlingNested LoopsPython
0 likes · 6 min read
Techniques to Exit Nested Loops in Python
360 Tech Engineering
360 Tech Engineering
Nov 14, 2019 · Backend Development

Building a Simple TCP Port Scanner in Go

This article walks through creating a lightweight TCP port scanner in Go, covering basic TCP handshake theory, single‑port testing, looping over ports, adding concurrency with WaitGroup, implementing timeouts, using the flag package for command‑line options, and handling race conditions with a mutex.

GoPort ScannerTCP
0 likes · 8 min read
Building a Simple TCP Port Scanner in Go