// Reads info from config file
Reads info from config file
// Reads info from config file
func NewSwaggerSpec(file string) *loads.Document {
	_, err := os.Stat(file)
	if err != nil {
		log.Fatal("Config file is missing: ", file)
	}
	doc, err := loads.Spec(file)
	if err != nil {
		panic(err)
	}
	return doc
}
func NewSwaggerSpec ( file string ) * loads . Document { _ , err := os . Stat ( file ) if err != nil { log . Fatal ( " " , file ) } doc , err := loads . Spec ( file ) if err != nil { panic ( err ) } return doc }
Reads info from config file
Reads info from config file