MCPcopy Create free account
hub / github.com/devfullcycle/goexpert / NewMath

Function NewMath

7-Packaging/4/math/math.go:11–13  ·  view source on GitHub ↗
(a, b int)

Source from the content-addressed store, hash-verified

9}
10
11func NewMath(a, b int) math {
12 return math{a: a, b: b}
13}
14
15func (m math) Add() int {
16 return m.a + m.b

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected