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

https://github.com/rafaelsouzaribeiro/check-required-fields

required fields module golang
https://github.com/rafaelsouzaribeiro/check-required-fields

golang required-fields

Last synced: over 1 year ago
JSON representation

required fields module golang

Awesome Lists containing this project

README

          

How to use?

```go
package main

import "github.com/rafaelsouzaribeiro/check-required-fields/pkg/utils"

func main() {
var m = map[string]interface{}{"campo": "", "testar": 0}
message := utils.CheckRequired(m, "The field", "is required")

println(message)
}
```