Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 287 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 287 Bytes

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