Skip to content

Instantly share code, notes, and snippets.

View bykof's full-sized avatar
:electron:
Let's go to java and have a brainfuck

Michael Bykovski bykof

:electron:
Let's go to java and have a brainfuck
View GitHub Profile
package infrastructure
import (
"encoding/json"
"example.com/dingo_example/domain"
"fmt"
"io/ioutil"
"net/http"
)
package main
import (
"example.com/dingo_example"
"example.com/dingo_example/interfaces"
"flamingo.me/dingo"
"log"
)
func main() {
// domain/product_api.go
package domain
type ProductAPI interface {
ProductList() (domain.ProductList, error)
}
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "DOCUMENTATION",
"description": "",
"termsOfService": "YOUR_TERMS_OF_SERVICE_URL",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"