Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-package

CI codecov Go Reference License: MIT

Minimal, well-tested Go library that sums integers. Meant as a template repo showing the repo hygiene (CI, coverage, licensing, ownership) expected of Bobadilla Technologies' Go packages.

The library is the main artifact. The bundled CLI under cmd/sum is a showcase / internal-testing tool with its own go.mod, so importing this package never pulls in any CLI-only dependency.

Install

go get github.com/bobadilla-tech/go-package

Usage

package main

import (
	"fmt"

	"github.com/bobadilla-tech/go-package"
)

func main() {
	fmt.Println(sum.Sum(1, 2, 3)) // 6
}

CLI (showcase only)

cmd/sum is a thin wrapper around the library, kept in its own Go module so its dependencies never leak into the library's go.mod:

cd cmd/sum
go run . 1 2 3
# 6

License

MIT

About

🐹 High Quality Golang package template

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Sponsor this project

Contributors

Languages