func (application *Application) Validate() (map[string] interface{}, bool) {

	if application.Name == "" {
		return u.Message(false, "Application name should be on the payload"), false
	}
	//All the required parameters are present
	return u.Message(true, "success"), true
}
/*
 This struct function validate the required parameters sent through the http request body

returns message and true if the requirement is met
*/
This struct function validate the required parameters sent through the http request body

returns message and true if the requirement is met
/ * This struct function validate the required parameters sent through the http request body returns message and true if the requirement is met * /
func (application *Application) Validate() (map[string] interface{}, bool) {
	if application.Name == "" {
		return u.Message(false, "Application name should be on the payload"), false
	}
	return u.Message(true, "success"), true
}
func ( application * Application ) Validate ( ) ( map [ string ] interface { } , bool ) { if application . Name == " " { return u . Message ( false , " " ) , false } return u . Message ( true , " " ) , true }
This struct function validate the required parameters sent through the http request body
This struct function validate the required parameters sent through the http request body
//All the required parameters are present