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

https://github.com/gebv/go-dice

Code generate for golang
https://github.com/gebv/go-dice

generics go go-generate gogenerate

Last synced: 6 months ago
JSON representation

Code generate for golang

Awesome Lists containing this project

README

          

# dice

[![Release](https://img.shields.io/github/release/gebv/go-dice.svg)](https://github.com/gebv/go-dice/releases/latest)
[![CircleCI](https://circleci.com/gh/gebv/go-dice/tree/master.svg?style=svg)](https://circleci.com/gh/gebv/go-dice/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/gebv/go-dice)](https://goreportcard.com/report/github.com/gebv/go-dice)
[![GolangCI](https://golangci.com/badges/github.com/golangci/golangci-lint.svg)](https://golangci.com)

Code generator

Dice gopher logo

# Features list

* [x] database/sql/driver Scan & Value sqldriver
* [ ] transfrom <->
* [ ] stringer (basic type, enum, struct)
* [ ] helper builder for struct with default values, with init map, chan
* [ ] документация DTO объекта от его полей с комментариями к полям (doc, inline)
* [ ] формирование DTO + фильтрация->валидация

# Notes and magic, how's without her?

* used `github.com/BurntSushi/toml` for encode toml because not overrides origin values if key is omitted in the file (it is not public possibility?). It is for to preserve default values for config
* нет возможности записать опции аннотации в inline (в силу ограничения формата toml). Другие варианты? Форматы?

# Logo

Attached *.ai, *.pdf, *.svg version logo. Two versions

1. with color dice

Color dice gopher logo

2. with white dice

White dice gopher logo