func index(w http.ResponseWriter, r *http.Request) error {
	host, _ := config.GetString("host")
	userCreate, _ := config.GetBool("auth:user-registration")
	scheme, _ := config.GetString("auth:scheme")
	repoManager, _ := config.GetString("repo-manager")
	data := map[string]interface{}{
		"tsuruTarget": host,
		"userCreate":  userCreate,
		"nativeLogin": scheme == "" || scheme == "native",
		"keysEnabled": repoManager == "" || repoManager == "gandalf",
	}
	template, err := getTemplate()
	if err != nil {
		return err
	}
	return template.Execute(w, data)
}
func index(w http.ResponseWriter, r *http.Request) error {
	host, _ := config.GetString("host")
	userCreate, _ := config.GetBool("auth:user-registration")
	scheme, _ := config.GetString("auth:scheme")
	repoManager, _ := config.GetString("repo-manager")
	data := map[string]interface{}{
		"tsuruTarget": host,
		"userCreate":  userCreate,
		"nativeLogin": scheme == "" || scheme == "native",
		"keysEnabled": repoManager == "" || repoManager == "gandalf",
	}
	template, err := getTemplate()
	if err != nil {
		return err
	}
	return template.Execute(w, data)
}
func index ( w http . ResponseWriter , r * http . Request ) error { host , _ := config . GetString ( " " ) userCreate , _ := config . GetBool ( " " ) scheme , _ := config . GetString ( " " ) repoManager , _ := config . GetString ( " " ) data := map [ string ] interface { } { " " : host , " " : userCreate , " " : scheme == " " || scheme == " " , " " : repoManager == " " || repoManager == " " , } template , err := getTemplate ( ) if err != nil { return err } return template . Execute ( w , data ) }
// title: index
// path: /
// method: GET
// responses:
//   200: OK
title : index path : / method : GET responses : 200 : OK