Add Add function to math utility package #2

Open
opened 2026-05-21 15:32:49 +00:00 by fjadmin · 2 comments
Owner

Create the math utility package with an Add function.

Requirements:

  • Create pkg/math/ directory with Go files
  • Implement Add(a, b int) int that returns the sum of two integers
  • Include unit tests in pkg/math/math_test.go
  • Follow Go conventions (package name: mathutil to avoid stdlib conflict)

Deliverables:

  • pkg/math/math.go — Add function implementation
  • pkg/math/math_test.go — Unit tests for Add

Depends on: #1

Parent Context (from #1)

Break this down into sub-issues: 1) Add Add function, 2) Add Subtract function, 3) Integration test

Context

This issue depends on parent issue #1. The code this issue works with will be available in the repository once the parent PR is merged. Wait for the 'ready' label before starting implementation.

Create the math utility package with an Add function. **Requirements:** - Create `pkg/math/` directory with Go files - Implement `Add(a, b int) int` that returns the sum of two integers - Include unit tests in `pkg/math/math_test.go` - Follow Go conventions (package name: `mathutil` to avoid stdlib conflict) **Deliverables:** - `pkg/math/math.go` — Add function implementation - `pkg/math/math_test.go` — Unit tests for Add Depends on: #1 ## Parent Context (from #1) Break this down into sub-issues: 1) Add Add function, 2) Add Subtract function, 3) Integration test ## Context This issue depends on parent issue #1. The code this issue works with will be available in the repository once the parent PR is merged. Wait for the 'ready' label before starting implementation.
fjadmin added the
planning
blocked
labels 2026-05-21 15:32:51 +00:00
Author
Owner

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the blocked label from this issue to continue.

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the `blocked` label from this issue to continue. <!-- ford -->
Author
Owner

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the blocked label from this issue to continue.

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the `blocked` label from this issue to continue. <!-- ford -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fjadmin/controlled-project#2
No description provided.