David in Canada

 

Tech, life, and everything in between.

Day 13 — Student Manager (Modular Go Project)

Updated at # Tech # Go

Overview

This project demonstrates how to structure a Go application using packages and modular design.

Instead of placing all logic in a single file, the program is organized into reusable components, following real-world Go project practices.


Features


Project Structure

day13-student-manager/ ├── go.mod ├── main.go ├── students.txt └── student/ ├── student.go └── processor.go


Design Highlights

Package Separation


Input Format

students.txt:

Alice 20 85 Bob 22 70 Charlie 19 95

Each line: Name Age Score


Output

result.txt:

Average Score: 83.33 Top Student: Charlie (95)


How to Run

go run .


Error Handling

Handles:


Key Learnings


Reflection

Transition from single-file scripts to modular applications.


Next Steps