mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-22 05:10:34 +02:00
Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
This commit is contained in:
parent
6dc7ec63e4
commit
9e2def0173
@ -199,7 +199,7 @@ func CreateSaveHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// Returns last lines of the factorio-current.log file
|
||||
// LogTail returns last lines of the factorio-current.log file
|
||||
func LogTail(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
@ -224,7 +224,7 @@ func LogTail(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// Return JSON response of config.ini file
|
||||
// LoadConfig returns JSON response of config.ini file
|
||||
func LoadConfig(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
@ -694,7 +694,7 @@ func RemoveUser(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// Return JSON response of server-settings.json file
|
||||
// GetServerSettings returns JSON response of server-settings.json file
|
||||
func GetServerSettings(w http.ResponseWriter, r *http.Request) {
|
||||
resp := JSONResponse{
|
||||
Success: false,
|
||||
|
@ -62,7 +62,7 @@ func listInstalledModsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// Returns JSON response with success or error-message
|
||||
// LoginFactorioModPortal returns JSON response with success or error-message
|
||||
func LoginFactorioModPortal(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
@ -147,7 +147,7 @@ func LogoutFactorioModPortalHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
//Returns JSON response with the found mods
|
||||
//ModPortalSearchHandler returns JSON response with the found mods
|
||||
func ModPortalSearchHandler(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
@ -180,7 +180,7 @@ func ModPortalSearchHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
//Returns JSON response with the mod details
|
||||
//ModPortalDetailsHandler returns JSON response with the mod details
|
||||
func ModPortalDetailsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
@ -567,7 +567,7 @@ func DownloadModsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
writerHeader.Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s\"", "all_installed_mods.zip"))
|
||||
}
|
||||
|
||||
//Returns JSON response with the found mods
|
||||
//LoadModsFromSaveHandler returns JSON response with the found mods
|
||||
func LoadModsFromSaveHandler(w http.ResponseWriter, r *http.Request) {
|
||||
var err error
|
||||
resp := JSONResponse{
|
||||
|
Loading…
x
Reference in New Issue
Block a user