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

https://github.com/rizalgowandy/library-template-go

Template for a new library.
https://github.com/rizalgowandy/library-template-go

go golang golang-library library sdk template

Last synced: 5 months ago
JSON representation

Template for a new library.

Awesome Lists containing this project

README

          

[![Go Doc](https://pkg.go.dev/badge/github.com/rizalgowandy/library-template-go?status.svg)](https://pkg.go.dev/github.com/rizalgowandy/library-template-go?tab=doc)
[![Release](https://img.shields.io/github/release/rizalgowandy/library-template-go.svg?style=flat-square)](https://github.com/rizalgowandy/library-template-go/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/rizalgowandy/library-template-go)](https://goreportcard.com/report/github.com/rizalgowandy/library-template-go)
[![Build Status](https://github.com/rizalgowandy/library-template-go/workflows/Go/badge.svg?branch=main)](https://github.com/rizalgowandy/library-template-go/actions?query=branch%3Amain)
[![Sourcegraph](https://sourcegraph.com/github.com/rizalgowandy/library-template-go/-/badge.svg)](https://sourcegraph.com/github.com/rizalgowandy/library-template-go?badge)

![logo](.github/library-template-go.png)

## Getting Started

// TODO: replace me

## Installation

```shell
# TODO: replace me
go get -v github.com/rizalgowandy/library-template-go
```

## Quick Start

```go
// TODO: replace me
```

For more example check [here](main_integration_test.go).

## Test Double / Stub

Sometimes it's make sense to make an API call without actually calling the API. In order to support that this library has a built-in stub that can be triggered. You can enable stub by injecting certain value to the context data. You can also enforce that certain API call will always return error with specific type and
message.

```go
// TODO: replace me
```

For more example, check [here]().

## Supported API

Version: // TODO: replace me

- [// TODO: replace me]()
- [// TODO: replace me]()