An open API service indexing awesome lists of open source software.

https://github.com/devantler-tech/go-template

A simple Go template for new projects.
https://github.com/devantler-tech/go-template

template

Last synced: 3 months ago
JSON representation

A simple Go template for new projects.

Awesome Lists containing this project

README

          

# Go Template

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Test](https://github.com/devantler-tech/go-template/actions/workflows/test.yaml/badge.svg)](https://github.com/devantler-tech/go-template/actions/workflows/test.yaml)
[![codecov](https://codecov.io/gh/devantler-tech/go-template/graph/badge.svg?token=RhQPb4fE7z)](https://codecov.io/gh/devantler-tech/go-template)
[![Go Report Card](https://goreportcard.com/badge/github.com/devantler-tech/go-template)](https://goreportcard.com/report/github.com/devantler-tech/go-template)
[![Go Reference](https://pkg.go.dev/badge/github.com/devantler-tech/go-template.svg)](https://pkg.go.dev/github.com/devantler-tech/go-template)

A simple Go template for new projects.

## Prerequisites

- [Go](https://golang.org/dl/)

## 🚀 Getting Started

Clone the repository and initialize a new module to try the template locally.

```bash
git clone
cd
go mod init
```

## 📝 Usage

### Initialize the module

```bash
go mod tidy
```

### Add a dependency

```bash
go get example.com/awesome-lib@latest
```

### Build your project

```bash
go build ./...
```

### Run your project

```bash
go run ./
```

### Test your project

```bash
go test ./...
```