Skip to content

rafaelsouzaribeiro/check-required-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

How to use?

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)
}

About

required fields module golang

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages