-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1074 lines (1015 loc) · 52.8 KB
/
Copy pathindex.html
File metadata and controls
1074 lines (1015 loc) · 52.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Go Engineering Series — Master Index</title>
<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- ═══════════════════════════════════════════════════════
TOPBAR
═══════════════════════════════════════════════════════ -->
<header class="topbar" role="banner">
<a href="index.html" class="topbar-logo" aria-label="Go Engineering Series Home">
<div class="topbar-logo-icon"><img src="go-logo.png" alt=""></div>
<div class="topbar-logo-text"><span>Go</span>Backend<span>Lab</span></div>
</a>
<!-- Desktop nav -->
<nav class="nav-links" aria-label="Site navigation">
<a href="#guides" class="active">Guides</a>
<a href="#overview">Overview</a>
<a href="#coverage">Coverage</a>
<a href="#whygo">Why Go</a>
<a href="#start">Start Reading</a>
</nav>
<!-- Desktop guide pills -->
<div class="nav-guides" aria-label="Quick links to guides">
<a href="go-wins.html" class="nav-guide-pill ngp-lang" target="_blank">Go vs World</a>
<a href="go-frameworks.html" class="nav-guide-pill ngp-fw" target="_blank">Frameworks</a>
<a href="design-pattern.html" class="nav-guide-pill ngp-pat" target="_blank">Patterns</a>
<a href="go-arch.html" class="nav-guide-pill ngp-arch" target="_blank">Architecture</a>
<a href="go-adv-con.html" class="nav-guide-pill ngp-lang" target="_blank">Concurrency.</a>
</div>
<!-- Hamburger -->
<button class="hamburger" id="hamburger" aria-label="Toggle menu" aria-expanded="false">
<span></span><span></span><span></span>
</button>
</header>
<!-- Mobile Drawer -->
<nav class="mobile-drawer" id="mobile-drawer" aria-label="Mobile navigation">
<div class="mob-section-label">Navigate Page</div>
<a href="#guides" class="mob-link" onclick="closeDrawer()">
<div class="mob-link-icon">📚</div>
<div class="mob-link-info">
<div class="mob-link-title" style="color:var(--frameworks)">All Guides</div>
<div class="mob-link-sub">See all 4 deep guides</div>
</div>
</a>
<a href="#overview" class="mob-link" onclick="closeDrawer()">
<div class="mob-link-icon">🗺️</div>
<div class="mob-link-info">
<div class="mob-link-title" style="color:var(--text)">What's Covered</div>
<div class="mob-link-sub">Chapter-by-chapter overview</div>
</div>
</a>
<a href="#whygo" class="mob-link" onclick="closeDrawer()">
<div class="mob-link-icon">🐹</div>
<div class="mob-link-info">
<div class="mob-link-title" style="color:var(--text)">Why Go?</div>
<div class="mob-link-sub">Key language advantages</div>
</div>
</a>
<div class="mob-section-label">Open a Guide</div>
<a href="go-frameworks.html" class="mob-link fw" target="_blank">
<div class="mob-link-icon">🍸</div>
<div class="mob-link-info">
<div class="mob-link-title">Go Frameworks</div>
<div class="mob-link-sub">Gin · Fiber · Echo · Chi — deep comparison</div>
</div>
</a>
<a href="design-pattern.html" class="mob-link pat" target="_blank">
<div class="mob-link-icon">🔮</div>
<div class="mob-link-info">
<div class="mob-link-title">Go Design Patterns</div>
<div class="mob-link-sub">12 patterns — Singleton to Fan-Out/In</div>
</div>
</a>
<a href="go-arch.html" class="mob-link arch" target="_blank">
<div class="mob-link-icon">🏛️</div>
<div class="mob-link-info">
<div class="mob-link-title">Go Architecture</div>
<div class="mob-link-sub">10 architectures — Monolith to DDD</div>
</div>
</a>
<a href="go-wins.html" class="mob-link lang" target="_blank">
<div class="mob-link-icon">⚔️</div>
<div class="mob-link-info">
<div class="mob-link-title">Go vs The World</div>
<div class="mob-link-sub">Go vs C++, Java, Python, Rust, JS, C#</div>
</div>
</a>
</nav>
<!-- ═══════════════════════════════════════════════════════
HERO
═══════════════════════════════════════════════════════ -->
<main>
<section class="hero" id="home" aria-label="Hero section">
<div class="hero-grid" aria-hidden="true"></div>
<div class="orb orb-1" aria-hidden="true"></div>
<div class="orb orb-2" aria-hidden="true"></div>
<div class="orb orb-3" aria-hidden="true"></div>
<div class="hero-content">
<div class="hero-kicker">🐹 The Complete Go Engineering Series</div>
<h1>
Master <span class="go-word">Go</span><br>
<span class="dim">From Framework to Architecture</span>
</h1>
<p class="hero-desc">
Four production-grade deep guides covering every dimension of Go backend engineering — frameworks, design
patterns, software architecture, and language comparison. Everything a Go engineer needs, in one place.
</p>
<div class="hero-stats">
<div class="stat-chip">
<div class="val">4</div>
<div class="lbl">Deep Guides</div>
</div>
<div class="stat-chip">
<div class="val">36+</div>
<div class="lbl">Topics Covered</div>
</div>
<div class="stat-chip">
<div class="val">6</div>
<div class="lbl">Languages Compared</div>
</div>
<div class="stat-chip">
<div class="val">20+</div>
<div class="lbl">Real-World Scenarios</div>
</div>
</div>
<div class="hero-cta">
<a href="go-frameworks.html" class="btn-primary" target="_blank">
🍸 Start with Frameworks
</a>
<a href="#guides" class="btn-secondary">
📚 Browse All Guides
</a>
</div>
</div>
<div class="scroll-hint" aria-hidden="true">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M8 3v10M4 9l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
Scroll to explore
</div>
</section>
<!-- Companies marquee -->
<div class="companies-section" aria-label="Companies using Go">
<div class="companies-label">Powering production at</div>
<div class="marquee-wrapper" aria-hidden="true">
<div class="marquee-track">
<span class="company-badge">Google</span>
<span class="company-badge">Cloudflare</span>
<span class="company-badge">Uber</span>
<span class="company-badge">Docker</span>
<span class="company-badge">Kubernetes</span>
<span class="company-badge">Dropbox</span>
<span class="company-badge">Monzo</span>
<span class="company-badge">Revolut</span>
<span class="company-badge">Grab</span>
<span class="company-badge">GoJek</span>
<span class="company-badge">Coinbase</span>
<span class="company-badge">Robinhood</span>
<span class="company-badge">Twitch</span>
<span class="company-badge">Heroku</span>
<span class="company-badge">Terraform</span>
<span class="company-badge">Prometheus</span>
<span class="company-badge">Traefik</span>
<span class="company-badge">Caddy</span>
<!-- duplicate for seamless loop -->
<span class="company-badge">Google</span>
<span class="company-badge">Cloudflare</span>
<span class="company-badge">Uber</span>
<span class="company-badge">Docker</span>
<span class="company-badge">Kubernetes</span>
<span class="company-badge">Dropbox</span>
<span class="company-badge">Monzo</span>
<span class="company-badge">Revolut</span>
<span class="company-badge">Grab</span>
<span class="company-badge">GoJek</span>
<span class="company-badge">Coinbase</span>
<span class="company-badge">Robinhood</span>
<span class="company-badge">Twitch</span>
<span class="company-badge">Heroku</span>
<span class="company-badge">Terraform</span>
<span class="company-badge">Prometheus</span>
<span class="company-badge">Traefik</span>
<span class="company-badge">Caddy</span>
</div>
</div>
</div>
<!-- ═══════════════════════════════════════════════════════
GUIDE CARDS
═══════════════════════════════════════════════════════ -->
<section id="guides">
<div class="container">
<div class="section-eyebrow">The Complete Series</div>
<div class="section-title">Four Deep Go Engineering Guides</div>
<p class="section-desc">Each guide is a standalone, production-grade reference — packed with Go code,
architecture diagrams, real-world use cases, and comparison tables.</p>
<div class="guides-grid">
<!-- GUIDE 1: Frameworks -->
<a href="go-frameworks.html" class="guide-card gc-fw" target="_blank"
aria-label="Go Backend Frameworks Deep Guide">
<div class="gc-num">01</div>
<span class="gc-icon">🍸</span>
<div class="gc-kicker">Guide 01 · Framework Comparison</div>
<div class="gc-title">Go Backend Frameworks<br>Deep Guide</div>
<p class="gc-desc">
An exhaustive production-grade breakdown of Go's four dominant HTTP frameworks — Gin, Fiber, Echo, and
Chi. Covers what each framework is, when to use it, security capabilities, architecture patterns,
performance benchmarks, real-world project suitability, and code examples for each.
</p>
<div class="gc-chapters">
<span class="gc-chapter">🍸 Gin</span>
<span class="gc-chapter">⚡ Fiber</span>
<span class="gc-chapter">🔊 Echo</span>
<span class="gc-chapter">♟ Chi</span>
<span class="gc-chapter">Performance</span>
<span class="gc-chapter">Security</span>
<span class="gc-chapter">Architecture</span>
<span class="gc-chapter">Real-life Use Cases</span>
<span class="gc-chapter">Summary Table</span>
</div>
<div class="gc-cta">
<span class="gc-cta-label">Open Guide →</span>
<div class="gc-arrow">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
</div>
</a>
<!-- GUIDE 2: Patterns -->
<a href="design-pattern.html" class="guide-card gc-pat" target="_blank"
aria-label="Go Design Patterns Deep Guide">
<div class="gc-num">02</div>
<span class="gc-icon">🔮</span>
<div class="gc-kicker">Guide 02 · Design Patterns</div>
<div class="gc-title">Go Design Patterns<br>Complete Deep Guide</div>
<p class="gc-desc">
Twelve essential Go design patterns across four categories — Creational, Structural, Behavioral, and
Go-specific Concurrency patterns. Each pattern includes: what it is, how it works in Go, step-by-step
implementation, SVG diagrams, full Go code examples, advantages vs disadvantages, and
restaurant/fintech/delivery real-world scenarios.
</p>
<div class="gc-chapters">
<span class="gc-chapter">🔒 Singleton</span>
<span class="gc-chapter">🏗️ Builder</span>
<span class="gc-chapter">🏭 Factory</span>
<span class="gc-chapter">🔌 Adapter</span>
<span class="gc-chapter">👁️ Observer</span>
<span class="gc-chapter">♟️ Strategy</span>
<span class="gc-chapter">🎁 Decorator</span>
<span class="gc-chapter">⚙️ Worker Pool</span>
<span class="gc-chapter">🔗 Pipeline</span>
<span class="gc-chapter">📡 Fan-Out/In</span>
<span class="gc-chapter">🗄️ Repository</span>
<span class="gc-chapter">🔧 Middleware</span>
</div>
<div class="gc-cta">
<span class="gc-cta-label">Open Guide →</span>
<div class="gc-arrow">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
</div>
</a>
<!-- GUIDE 3: Architecture -->
<a href="go-arch.html" class="guide-card gc-arch" target="_blank"
aria-label="Go Software Architecture Deep Guide">
<div class="gc-num">03</div>
<span class="gc-icon">🏛️</span>
<div class="gc-kicker">Guide 03 · Software Architecture</div>
<div class="gc-title">Go Software Architecture<br>Complete Deep Guide</div>
<p class="gc-desc">
Ten production-grade software architecture patterns used in the Go industry — from a tiny startup blog to
a billion-user fintech platform. Each architecture includes: what it is, how it works in Go, bottlenecks,
complexity metrics, project-scale suitability, SVG flow diagrams, Go code examples, and when to use vs
avoid. Final comparison table across all 10.
</p>
<div class="gc-chapters">
<span class="gc-chapter">🏛️ Monolithic</span>
<span class="gc-chapter">🔬 Microservices</span>
<span class="gc-chapter">⚡ Event-Driven</span>
<span class="gc-chapter">🎯 Clean Arch</span>
<span class="gc-chapter">🥞 Layered (N-Tier)</span>
<span class="gc-chapter">⬡ Hexagonal</span>
<span class="gc-chapter">⚖️ CQRS</span>
<span class="gc-chapter">☁️ Serverless</span>
<span class="gc-chapter">🕸️ SOA</span>
<span class="gc-chapter">🌐 DDD</span>
<span class="gc-chapter">Decision Guide</span>
</div>
<div class="gc-cta">
<span class="gc-cta-label">Open Guide →</span>
<div class="gc-arrow">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
</div>
</a>
<!-- GUIDE 4: Languages -->
<a href="go-wins.html" class="guide-card gc-lang" target="_blank" aria-label="Go vs Languages Deep Guide">
<div class="gc-num">04</div>
<span class="gc-icon">⚔️</span>
<div class="gc-kicker">Guide 04 · Language Comparison</div>
<div class="gc-title">Why Go — vs C++, Java, JS,<br>Python, C#, Rust</div>
<p class="gc-desc">
Four sections making the definitive case for Go: (1) Why Go beats each language on concurrency,
performance, simplicity, and deployment. (2) Framework benchmarks — req/sec, latency, I/O model,
middleware ecosystem, security, dependencies across all 7 languages. (3) Which projects Go is the best
choice for. (4) Eight real-world scenarios with full justification — food delivery, fintech, hospital ERP,
flash sales, K8s tools, banking, API gateway, ride-sharing.
</p>
<div class="gc-chapters">
<span class="gc-chapter">§1 Why Go Wins</span>
<span class="gc-chapter">Concurrency Comparison</span>
<span class="gc-chapter">Performance Benchmarks</span>
<span class="gc-chapter">Developer Experience</span>
<span class="gc-chapter">§2 Framework Benchmarks</span>
<span class="gc-chapter">§3 Best-Fit Projects</span>
<span class="gc-chapter">§4 8 Real Scenarios</span>
<span class="gc-chapter">Master Comparison Table</span>
</div>
<div class="gc-cta">
<span class="gc-cta-label">Open Guide →</span>
<div class="gc-arrow">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
</div>
</div>
</a>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════════════════════
TABBED OVERVIEW
═══════════════════════════════════════════════════════ -->
<section id="overview">
<div class="container">
<div class="section-eyebrow">What's Inside Each Guide</div>
<div class="section-title">Chapter-by-Chapter Overview</div>
<p class="section-desc">Click a tab to explore what each guide covers in depth.</p>
<div class="overview-tabs" role="tablist" aria-label="Guide overviews">
<button class="ov-tab active" data-panel="fw" data-color="fw" role="tab" aria-selected="true"
aria-controls="panel-fw">🍸 Frameworks</button>
<button class="ov-tab" data-panel="pat" data-color="patterns" role="tab" aria-selected="false"
aria-controls="panel-pat">🔮 Patterns</button>
<button class="ov-tab" data-panel="arch" data-color="arch" role="tab" aria-selected="false"
aria-controls="panel-arch">🏛️ Architecture</button>
<button class="ov-tab" data-panel="lang" data-color="langs" role="tab" aria-selected="false"
aria-controls="panel-lang">⚔️ Go vs World</button>
</div>
<div class="ov-panels">
<div id="panel-fw" class="ov-panel active" role="tabpanel">
<div class="ov-item">
<div class="ov-item-icon">🍸</div>
<div class="ov-item-body">
<div class="ov-item-title">Gin — The Industry Standard</div>
<div class="ov-item-desc">What it is, radix-tree router deep dive, middleware ecosystem (78K+ stars),
security, when to use for ERP/SaaS/REST APIs, full code example, pros & cons.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⚡</div>
<div class="ov-item-body">
<div class="ov-item-title">Fiber — The Speed King</div>
<div class="ov-item-desc">Fasthttp engine, zero-copy design, prefork mode, WebSocket built-in, when to
use for stock market/real-time/high-traffic, goroutine-safety caveats.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🔊</div>
<div class="ov-item-body">
<div class="ov-item-title">Echo — The Elegant Minimalist</div>
<div class="ov-item-desc">Auto-TLS (Let's Encrypt), built-in CSRF, HTTP/2, superior data binding, when
to use for healthcare/fintech/security-first, comparison vs Gin.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">♟</div>
<div class="ov-item-body">
<div class="ov-item-title">Chi — The Idiomatic Purist</div>
<div class="ov-item-desc">Zero external dependencies, 100% net/http compatible, scoped middleware, Clean
Architecture fit, when to use for government/audit/compliance projects.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📊</div>
<div class="ov-item-body">
<div class="ov-item-title">Performance Benchmarks</div>
<div class="ov-item-desc">Req/sec bars, p99 latency, memory per request, allocs/op — all four frameworks
side by side with benchmark methodology notes.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🔒</div>
<div class="ov-item-body">
<div class="ov-item-title">Security Capabilities</div>
<div class="ov-item-desc">JWT, CSRF, CORS, rate limiting, secure headers, auto-TLS — per framework
availability matrix with code snippets.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🏗️</div>
<div class="ov-item-body">
<div class="ov-item-title">Architecture Patterns Per Framework</div>
<div class="ov-item-desc">MVC for Gin, Event-Driven for Fiber, Clean/DDD for Echo, Hexagonal for Chi —
which framework pairs with which architecture.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📋</div>
<div class="ov-item-body">
<div class="ov-item-title">Master Comparison Table</div>
<div class="ov-item-desc">20-row final table covering: HTTP engine, WebSocket, auto-TLS, CSRF, rate
limiter, gRPC, community stars, goroutine safety, and overall scores.</div>
</div>
</div>
</div>
<div id="panel-pat" class="ov-panel" role="tabpanel">
<div class="ov-item">
<div class="ov-item-icon">🔒</div>
<div class="ov-item-body">
<div class="ov-item-title">Singleton — sync.Once</div>
<div class="ov-item-desc">Goroutine-safe lazy initialization, DB connection pool example, why it's both
powerful and dangerous, and when DI is better.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🏗️</div>
<div class="ov-item-body">
<div class="ov-item-title">Builder — Functional Options</div>
<div class="ov-item-desc">Method chaining, validation at Build(), Go's functional options variant (used
by gRPC, zap), notification builder real-world example.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🏭</div>
<div class="ov-item-body">
<div class="ov-item-title">Factory — Registry Pattern</div>
<div class="ov-item-desc">Interface-based creation, registry map variant, payment gateway factory
example, Open/Closed Principle application.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🔌</div>
<div class="ov-item-body">
<div class="ov-item-title">Adapter — Interface Bridge</div>
<div class="ov-item-desc">Go's implicit interfaces making Adapter natural, zap.Logger adapter example,
how io.Reader/Writer ecosystem is pure Adapter pattern.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">👁️</div>
<div class="ov-item-body">
<div class="ov-item-title">Observer — Event Bus with Channels</div>
<div class="ov-item-desc">Buffered channels as subscriber queues, sync.RWMutex for subscriber list,
restaurant order lifecycle fan-out real example.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">♟️</div>
<div class="ov-item-body">
<div class="ov-item-title">Strategy — Runtime Algorithm Swap</div>
<div class="ov-item-desc">Interface vs function type strategies, e-commerce dynamic pricing with
BulkDiscount/MemberPricing/FlashSale strategies, runtime injection.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⚙️</div>
<div class="ov-item-body">
<div class="ov-item-title">Worker Pool — Bounded Goroutines</div>
<div class="ov-item-desc">Prevent goroutine explosion, jobs/results channels, WaitGroup coordination,
context cancellation, image processing real example with NumCPU workers.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📡</div>
<div class="ov-item-body">
<div class="ov-item-title">Fan-Out/Fan-In — Scatter-Gather</div>
<div class="ov-item-desc">Parallel API calls, merge function pattern, travel price aggregator example —
latency = max(sources) not sum, first-response-wins variant.</div>
</div>
</div>
</div>
<div id="panel-arch" class="ov-panel" role="tabpanel">
<div class="ov-item">
<div class="ov-item-icon">🏛️</div>
<div class="ov-item-body">
<div class="ov-item-title">Monolithic — The Right Start</div>
<div class="ov-item-desc">Modular monolith structure, when to start here (always), bottlenecks, and when
to migrate. Restaurant POS example. Complexity meters.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🔬</div>
<div class="ov-item-body">
<div class="ov-item-title">Microservices — At Scale</div>
<div class="ov-item-desc">gRPC service communication, Kubernetes requirements, service discovery,
distributed tracing, Saga pattern, Uber Eats decomposition example.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⚡</div>
<div class="ov-item-body">
<div class="ov-item-title">Event-Driven — Maximum Decoupling</div>
<div class="ov-item-desc">Kafka vs NATS vs RabbitMQ, Go kafka-go consumer, dead letter queues, fintech
payment event chain, event sourcing vs simple pub/sub.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🎯</div>
<div class="ov-item-body">
<div class="ov-item-title">Clean Architecture — Long-Term Investment</div>
<div class="ov-item-desc">Concentric dependency rule, 4-layer Go structure, domain → use case → adapter
→ framework, framework-agnostic domain, maximum testability.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🥞</div>
<div class="ov-item-body">
<div class="ov-item-title">Layered N-Tier — The Industry Default</div>
<div class="ov-item-desc">Handler → Service → Repository, strict layer rules, vs Clean Architecture,
most common Go REST API pattern, when it becomes "Big Ball of Mud".</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⬡</div>
<div class="ov-item-body">
<div class="ov-item-title">Hexagonal — Ports & Adapters</div>
<div class="ov-item-desc">Driving vs driven ports, hex diagram with 6 adapters, InMemory test adapter,
multi-protocol (HTTP+gRPC+CLI+Kafka) from one core.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⚖️</div>
<div class="ov-item-body">
<div class="ov-item-title">CQRS — Separate Read & Write</div>
<div class="ov-item-desc">Command vs Query models, Postgres write + Elasticsearch read, projection
synchronization, e-commerce search+order use case.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🌐</div>
<div class="ov-item-body">
<div class="ov-item-title">DDD — Domain-Driven Design</div>
<div class="ov-item-desc">Entities, Value Objects, Aggregates, Domain Events in Go, Ubiquitous Language,
Bounded Contexts, hospital management example with 3 contexts.</div>
</div>
</div>
</div>
<div id="panel-lang" class="ov-panel" role="tabpanel">
<div class="ov-item">
<div class="ov-item-icon">🔄</div>
<div class="ov-item-body">
<div class="ov-item-title">§1: Concurrency — Go's Crown Jewel</div>
<div class="ov-item-desc">2KB goroutine vs 1MB thread, CSP channels vs Java synchronized, M:N scheduler,
1M goroutines feasibility demo, Node.js GIL comparison.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">⚡</div>
<div class="ov-item-body">
<div class="ov-item-title">§1: Performance — Compile & Runtime</div>
<div class="ov-item-desc">Cold start bars (5ms Go vs 4s Java), compile time charts, static binary sizes,
GC pause < 1ms, HTTP throughput 800K-1.2M req/sec.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🛠️</div>
<div class="ov-item-body">
<div class="ov-item-title">§1: Developer Experience</div>
<div class="ov-item-desc">25 keywords, gofmt zero-debates, go tool all-in-one, go.sum supply chain
security, error-as-value vs hidden exceptions, backward compatibility guarantee.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📊</div>
<div class="ov-item-body">
<div class="ov-item-title">§2: Framework Benchmark Table</div>
<div class="ov-item-desc">7 languages × 20 criteria: req/sec, latency, I/O model, memory/req, binary
size, cold start, WebSocket, gRPC, security, Docker FROM scratch support.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📦</div>
<div class="ov-item-body">
<div class="ov-item-title">§3: 10 Best-Fit Project Types</div>
<div class="ov-item-desc">High-traffic APIs, DevOps tools, real-time streaming, auth services,
fintech, microservices, proxies, e-commerce, observability, game servers — with justification.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🍔</div>
<div class="ov-item-body">
<div class="ov-item-title">§4: Scenario — Food Delivery (Real-Time)</div>
<div class="ov-item-desc">50K WebSocket connections, driver GPS 5K updates/sec, worker pool image
processing — why Node.js single thread fails, Java memory explodes.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">📈</div>
<div class="ov-item-body">
<div class="ov-item-title">§4: Scenario — Stock Market & Fintech</div>
<div class="ov-item-desc">1M order events/sec, sub-ms GC for trade SLAs, Kafka consumer fan-out,
Coinbase/Robinhood/Zerodha Go adoption evidence.</div>
</div>
</div>
<div class="ov-item">
<div class="ov-item-icon">🚗</div>
<div class="ov-item-body">
<div class="ov-item-title">§4: Scenario — Ride-Sharing (Grab/Uber)</div>
<div class="ov-item-desc">200K riders + 50K drivers simultaneously, geo-search fan-out/in, Uber's
Python→Go migration: 150ms→12ms latency improvement with production evidence.</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════════════════════
TECH COVERAGE
═══════════════════════════════════════════════════════ -->
<section id="coverage">
<div class="container">
<div class="section-eyebrow">Technology Coverage</div>
<div class="section-title">Languages & Ecosystems Covered</div>
<p class="section-desc">Every guide cross-references multiple languages and ecosystems, giving you the context
to make informed architecture decisions.</p>
<div class="coverage-row">
<div class="lang-chip" style="border-color:rgba(0,212,170,.3)"><span class="lang-chip-emoji">🐹</span>
<div class="lang-chip-name" style="color:#00d4aa">Go</div>
<div class="lang-chip-sub">Primary Focus</div>
</div>
<div class="lang-chip" style="border-color:rgba(124,106,247,.25)"><span class="lang-chip-emoji">⚙️</span>
<div class="lang-chip-name" style="color:#7c6af7">C++</div>
<div class="lang-chip-sub">Drogon · Crow</div>
</div>
<div class="lang-chip" style="border-color:rgba(255,107,53,.25)"><span class="lang-chip-emoji">☕</span>
<div class="lang-chip-name" style="color:#ff6b35">Java</div>
<div class="lang-chip-sub">Spring · Quarkus</div>
</div>
<div class="lang-chip" style="border-color:rgba(247,201,72,.25)"><span class="lang-chip-emoji">🟡</span>
<div class="lang-chip-name" style="color:#f7c948">JavaScript</div>
<div class="lang-chip-sub">Express · Fastify</div>
</div>
<div class="lang-chip" style="border-color:rgba(56,189,248,.25)"><span class="lang-chip-emoji">🐍</span>
<div class="lang-chip-name" style="color:#38bdf8">Python</div>
<div class="lang-chip-sub">FastAPI · Django</div>
</div>
<div class="lang-chip" style="border-color:rgba(244,114,182,.25)"><span class="lang-chip-emoji">🔷</span>
<div class="lang-chip-name" style="color:#f472b6">C# / .NET</div>
<div class="lang-chip-sub">ASP.NET Core</div>
</div>
<div class="lang-chip" style="border-color:rgba(251,146,60,.25)"><span class="lang-chip-emoji">🦀</span>
<div class="lang-chip-name" style="color:#fb923c">Rust</div>
<div class="lang-chip-sub">Actix · Axum</div>
</div>
</div>
<!-- Quick reference table -->
<div class="table-scroll">
<table class="mini-table">
<thead>
<tr>
<th>Guide</th>
<th>Primary Topics</th>
<th>Patterns/Items</th>
<th>Comparison</th>
<th>Best For</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="badge b-fw">🍸 Go Frameworks</span></td>
<td>Gin, Fiber, Echo, Chi — deep dive each</td>
<td>4 frameworks</td>
<td>Performance, security, middleware, architecture</td>
<td>Choosing a Go HTTP framework</td>
</tr>
<tr>
<td><span class="badge b-pat">🔮 Design Patterns</span></td>
<td>Creational, Structural, Behavioral, Concurrency</td>
<td>12 patterns</td>
<td>Go-idiomatic vs classic GoF approaches</td>
<td>Writing production-grade Go code</td>
</tr>
<tr>
<td><span class="badge b-arch">🏛️ Architecture</span></td>
<td>Monolith → Microservices → DDD spectrum</td>
<td>10 architectures</td>
<td>Complexity, scalability, team size, project type</td>
<td>Choosing the right system structure</td>
</tr>
<tr>
<td><span class="badge b-lang">⚔️ Go vs World</span></td>
<td>Language features, frameworks, real scenarios</td>
<td>7 languages × 4 sections</td>
<td>Req/sec, latency, tooling, DX, security</td>
<td>Justifying Go to team/stakeholders</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════════════════════
WHY GO
═══════════════════════════════════════════════════════ -->
<section id="whygo">
<div class="container">
<div class="section-eyebrow">The Short Answer</div>
<div class="section-title">Why Go for Backend Engineering?</div>
<p class="section-desc">Six reasons Go has become the language of choice for cloud-native backend systems at
Google, Cloudflare, Uber, Docker, and beyond.</p>
<div class="why-grid">
<div class="why-card">
<span class="why-card-icon">🔄</span>
<div class="why-card-title">Native Concurrency</div>
<div class="why-card-desc">Goroutines start at 2KB vs OS threads at 1MB. Run 1 million goroutines where Java
can run 10,000 threads. Channels make concurrent code race-condition-free by design.</div>
</div>
<div class="why-card">
<span class="why-card-icon">⚡</span>
<div class="why-card-title">Compile in Seconds</div>
<div class="why-card-desc">100K lines of Go compile in ~3 seconds. C++ takes 5 minutes. Java takes 1 minute.
Faster compile = faster iteration = faster shipping.</div>
</div>
<div class="why-card">
<span class="why-card-icon">📦</span>
<div class="why-card-title">Single Static Binary</div>
<div class="why-card-desc">One file. Copy to any Linux server and run. No JVM, no Python interpreter, no
node_modules. Docker images from scratch at 8-15MB.</div>
</div>
<div class="why-card">
<span class="why-card-icon">🧠</span>
<div class="why-card-title">25 Keywords Only</div>
<div class="why-card-desc">The smallest production language. New engineers are productive in days. No
templates, macros, or preprocessors. The entire spec fits in one reading session.</div>
</div>
<div class="why-card">
<span class="why-card-icon">🔒</span>
<div class="why-card-title">Memory Safe by Default</div>
<div class="why-card-desc">No buffer overflows, no use-after-free. Go's GC pause is consistently under 1ms.
Built-in race detector catches concurrency bugs before production.</div>
</div>
<div class="why-card">
<span class="why-card-icon">🛠️</span>
<div class="why-card-title">One Tool Does Everything</div>
<div class="why-card-desc"><code>go build</code>, <code>go test</code>, <code>go fmt</code>,
<code>go vet</code>, <code>go mod</code>, pprof, race detector — all built-in. No Makefile, Maven,
webpack, or pip needed.
</div>
</div>
</div>
<!-- Go performance highlight -->
<div
style="background:var(--surface);border:1px solid rgba(0,212,170,.2);border-radius:14px;padding:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;">
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
800K+</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
Req/sec (Gin)</div>
</div>
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
<1ms</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
GC Pause</div>
</div>
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
2KB</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
Per Goroutine</div>
</div>
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
~5ms</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
Cold Start</div>
</div>
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
3s</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
Compile 100K LOC</div>
</div>
<div style="text-align:center;">
<div
style="font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--frameworks);line-height:1">
25</div>
<div
style="font-family:'Space Mono',monospace;font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;margin-top:4px">
Language Keywords</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════════════════════════════════════════
CALL TO ACTION
═══════════════════════════════════════════════════════ -->
<section id="start">
<div class="container">
<div class="cta-card">
<h2 class="cta-title">Ready to go deep?<br><span>Start reading now.</span></h2>
<p class="cta-desc">Pick the guide that matches your current challenge. Each is self-contained and can be read
in any order.</p>
<div class="cta-buttons">
<a href="go-wins.html" class="cta-btn cta-btn-lang" target="_blank">⚔️ Go vs World</a>
<a href="go-adv-con.html" class="cta-btn cta-btn-arch" target="_blank">⛓️ Concurrency</a>
<a href="go-frameworks.html" class="cta-btn cta-btn-fw" target="_blank">🍸 Go Frameworks</a>
<a href="design-pattern.html" class="cta-btn cta-btn-pat" target="_blank">🔮 Design
Patterns</a>
<a href="go-arch.html" class="cta-btn cta-btn-arch" target="_blank">🏛️ Architecture</a>
</div>
</div>
</div>
</section>
</main>
<!-- ═══════════════════════════════════════════════════════
FOOTER
═══════════════════════════════════════════════════════ -->
<footer>
<div class="footer-inner">
<div class="footer-brand">
<div class="footer-logo">
<div class="footer-logo-icon">🐹</div>
<div class="footer-logo-text"><span>Go</span> Engineering Series</div>
</div>
<p class="footer-tagline">A complete deep-reference series for Go backend engineers — frameworks, design
patterns, software architecture, and language comparison. Production-grade knowledge in one place.</p>
</div>
<div class="footer-links">
<div class="footer-col">
<div class="footer-col-title">Guides</div>
<a href="go-frameworks.html" target="_blank">🍸 Go Frameworks</a>
<a href="design-pattern.html" target="_blank">🔮 Design Patterns</a>
<a href="go-arch.html" target="_blank">🏛️ Architecture</a>
<a href="go-wins.html" target="_blank">⚔️ Go vs World</a>
</div>
<div class="footer-col">
<div class="footer-col-title">Quick Jump</div>
<a href="#guides">All Guides</a>
<a href="#overview">Overview</a>
<a href="#coverage">Coverage</a>
<a href="#whygo">Why Go</a>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="footer-copy">
<p>Go Engineering Series · Complete Backend Reference</p>
<h3 style="color:aliceblue">Made by ©Showrav Kormokar</h3>
<a target="_blank" rel="noopener" href="https://www.github.com/showravkormokar">GitHub</a>
</div>
<div class="footer-series">
<a href="go-frameworks.html" class="fs-chip" target="_blank">Frameworks</a>
<a href="design-pattern.html" class="fs-chip" target="_blank">Patterns</a>
<a href="go-arch.html" class="fs-chip" target="_blank">Architecture</a>
<a href="go-wins.html" class="fs-chip" target="_blank">Go vs World</a>
</div>
</div>
</footer>
<!-- ═══════════════════════════════════════════════════════
JAVASCRIPT
═══════════════════════════════════════════════════════ -->
<script>
/* ── Hamburger / Mobile Drawer ── */
const hamburger = document.getElementById('hamburger');
const drawer = document.getElementById('mobile-drawer');
function closeDrawer() {
hamburger.classList.remove('open');
drawer.classList.remove('open');
hamburger.setAttribute('aria-expanded', 'false');
document.body.style.overflow = '';
}
hamburger.addEventListener('click', () => {
const isOpen = drawer.classList.toggle('open');
hamburger.classList.toggle('open', isOpen);
hamburger.setAttribute('aria-expanded', String(isOpen));
document.body.style.overflow = isOpen ? 'hidden' : '';
});
// Close drawer on outside click
document.addEventListener('click', e => {
if (!drawer.contains(e.target) && !hamburger.contains(e.target)) {
closeDrawer();
}
});
// Close on Escape
document.addEventListener('keydown', e => {
if (e.key === 'Escape') closeDrawer();
});
/* ── Tabs (Overview section) ── */
const tabs = document.querySelectorAll('.ov-tab');
const panels = document.querySelectorAll('.ov-panel');
tabs.forEach(tab => {
tab.addEventListener('click', () => {
const target = tab.dataset.panel;
tabs.forEach(t => {
t.classList.remove('active');
t.setAttribute('aria-selected', 'false');
});
panels.forEach(p => p.classList.remove('active'));
tab.classList.add('active');
tab.setAttribute('aria-selected', 'true');
document.getElementById('panel-' + target).classList.add('active');
});
});
/* ── Active nav link on scroll ── */
const sections = document.querySelectorAll('section[id], div.companies-section');
const navLinks = document.querySelectorAll('.nav-links a');
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const id = entry.target.id || '';
navLinks.forEach(link => {
link.classList.toggle('active', link.getAttribute('href') === '#' + id);
});
}
});
}, { rootMargin: '-40% 0px -55% 0px' });
document.querySelectorAll('section[id]').forEach(s => observer.observe(s));
/* ── Smooth scroll for internal links ── */
document.querySelectorAll('a[href^="#"]').forEach(link => {
link.addEventListener('click', e => {
const target = document.querySelector(link.getAttribute('href'));
if (target) {