# sathishnagarajan01/golangforbeginners architecture

> Architecture diagram of the GitHub repository sathishnagarajan01/golangforbeginners, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sathishnagarajan01/golangforbeginners
- Repository: https://github.com/sathishnagarajan01/golangforbeginners

## Overview

This repository is a sequence of standalone Go beginner lessons, plus a small interactive bill-management example. The lesson files demonstrate printing, variables, collections, control flow, functions, and parameter behavior independently; they are not a shared application pipeline. The bill example prompts for a bill name and options, then delegates item, tip, deletion, and save operations to bill methods. The bill-method implementation was not excerpted, so its relationship to the CLI is based on calls visible in the CLI source; storage details are omitted.

Main entry points: [`13Lesson/main.go`](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/main.go) (Interactive Bill CLI), [`13Lesson/structs_customTypes.go`](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/structs_customTypes.go) (Bill Types And Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Go Basics"]
  node_printing["Printing<br/>[print.go]"]
  node_variables["Variables<br/>[variables.go]"]
  node_arrays["Arrays And Slices<br/>[array.go]"]
  node_stdlib["Standard Library<br/>[stdLib.go]"]
  node_loops["Loops<br/>[loops.go]"]
  node_conditions["Conditionals"]
end

subgraph group_functions["Functions"]
  node_functions["Functions And Callbacks<br/>[function.go]"]
  node_returns["Multiple Returns"]
  node_scope["Package Scope<br/>[main.go]"]
end

subgraph group_data["Collections And Values"]
  node_maps["Maps<br/>[map.go]"]
  node_passing["Pass By Value<br/>[passByValue.go]"]
  node_pointers["Pointers<br/>[pointer.go]"]
end

subgraph group_billing["Bill Example"]
  node_cli["Interactive Bill CLI<br/>[main.go]"]
  node_bill["Bill Types And Operations"]
end

node_user(("Learner / User"))

node_user -->|"enters prompts"| node_cli
node_cli -->|"calls bill methods"| node_bill

click node_printing "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/01Lesson/print.go"
click node_variables "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/02Lesson/variables.go"
click node_arrays "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/03Lesson/array.go"
click node_stdlib "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/04Lesson/stdLib.go"
click node_loops "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/05Lesson/loops.go"
click node_conditions "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/06Lesson/boolean_conditonal.go"
click node_functions "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/07Lesson/function.go"
click node_returns "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/08Lesson/multiple_returns.go"
click node_scope "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/09Lesson/main.go"
click node_maps "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/10Lesson/map.go"
click node_passing "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/11Lesson/passByValue.go"
click node_pointers "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/12Lesson/pointer.go"
click node_cli "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/main.go"
click node_bill "https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/structs_customTypes.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_printing,node_variables,node_arrays,node_stdlib,node_loops,node_conditions,node_user toneBlue
class node_functions,node_returns,node_scope toneAmber
class node_maps,node_passing,node_pointers toneMint
class node_cli,node_bill toneRose
```

## Components

### Go Basics

- [Printing](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/01Lesson/print.go): `01Lesson/print.go`
- [Variables](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/02Lesson/variables.go): `02Lesson/variables.go`
- [Arrays And Slices](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/03Lesson/array.go): `03Lesson/array.go`
- [Standard Library](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/04Lesson/stdLib.go): `04Lesson/stdLib.go`
- [Loops](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/05Lesson/loops.go): `05Lesson/loops.go`
- [Conditionals](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/06Lesson/boolean_conditonal.go): `06Lesson/boolean_conditonal.go`

### Functions

- [Functions And Callbacks](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/07Lesson/function.go): `07Lesson/function.go`
- [Multiple Returns](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/08Lesson/multiple_returns.go): `08Lesson/multiple_returns.go`
- [Package Scope](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/09Lesson/main.go): `09Lesson/main.go`

### Collections And Values

- [Maps](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/10Lesson/map.go): `10Lesson/map.go`
- [Pass By Value](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/11Lesson/passByValue.go): `11Lesson/passByValue.go`
- [Pointers](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/12Lesson/pointer.go): `12Lesson/pointer.go`

### Bill Example

- [Interactive Bill CLI](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/main.go): `13Lesson/main.go`
- [Bill Types And Operations](https://github.com/sathishnagarajan01/golangforbeginners/blob/main/13Lesson/structs_customTypes.go): `13Lesson/structs_customTypes.go`

### Other components

- **Learner / User**

## Connections

- Learner / User → Interactive Bill CLI: enters prompts (evidence: `13Lesson/main.go`)
- Interactive Bill CLI → Bill Types And Operations: calls bill methods (evidence: `13Lesson/main.go`)
