Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Coffee Service ☕

A lightweight backend service simulation for a coffee shop, built with Go (Golang). This is a learning project focused on mastering the core concepts of Go development.

Overview

This service demonstrates how to handle orders, apply discounts using pointer receivers, and prepare data for frontend consumption using JSON serialization.

Features

  • Data Modeling: Custom Order struct with JSON tags for seamless integration.
  • Pointers in Action: Efficient state management using pointer receivers (modifying order status and price).
  • Clean Code: Separation of concerns between models and main logic.
  • JSON Marshaling: Formatted JSON output for order receipts.

Tech Stack

  • Language: Go 1.2x+
  • Standard Library: encoding/json, fmt, log

How to Run

  1. Clone this repository:
    git clone [https://github.com/Endropr/go-coffee-service-Pet.git](https://github.com/Endropr/go-coffee-service-Pet.git)
    
  2. Navigate to the project folder:
    cd go-coffee-service-Pet
    
  3. Run the application:
    go run .
    

What I've Learned

  • Building this project helped me understand:

  • How Go handles data structures.

  • The difference between value and pointer receivers.

  • How to structure a multi-file Go package.

  • Basic Git workflow and repository management.

Created by Endropr as part of the Go learning journey.

About

Interactive Coffee Machine CLI application written in Go. Focused on input handling, state logic, and basic backend principles.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages