style(go): reformat embedded GraphQL queries with consistent indentation

Normalize the AniList GraphQL query strings in AniListFunctions.go
and AniListUserFunctions.go so every operation uses the same
indentation scheme: two-space steps, field and nested selection sets
uniformly indented, and keywords/arguments spaced consistently
(query ($search: String!), relations {, startDate {, etc.). Also
break the AniListBrowse parameter list onto its own trailing
parameter line for readability.

The queries themselves are unchanged - this is whitespace-only
normalization of the raw string literals, done with the new
project-local Neovim setup (.nvim.lua) that formats embedded GraphQL
via prettier. No behavior change; queries return identical results.
This commit is contained in:
John O'Keefe
2026-09-24 13:50:31 -04:00
parent c0885a4bd5
commit 79022c04a8
2 changed files with 486 additions and 490 deletions
+4 -8
View File
@@ -374,7 +374,6 @@ func (a *App) AniListSearch(query string) (interface{}, error) {
}
isAdult
}
}
}
`,
@@ -812,12 +811,8 @@ func (a *App) AniListDeleteEntry(mediaListId int) (DeleteAniListReturn, error) {
Variables Variables `json:"variables"`
}{
Query: `
mutation(
$id:Int,
){
DeleteMediaListEntry(
id:$id,
){
mutation ($id: Int) {
DeleteMediaListEntry(id: $id) {
deleted
}
}
@@ -895,7 +890,8 @@ func (a *App) AniListBrowse(
tags []string,
excludedTags []string,
minimumTagRank int,
sort []string) (AniListCurrentUserWatchList, error) {
sort []string,
) (AniListCurrentUserWatchList, error) {
// user := a.GetAniListLoggedInUser()
type Variables struct {
Page int `json:"page"`