From 3235fef0e0927707c0ba176033d4a3c86c870738 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Wed, 8 Jan 2025 11:11:29 -0300 Subject: [PATCH] docs(blogo,gitea): use string instead of undefined constants in notes --- blogo/gitea/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blogo/gitea/client.go b/blogo/gitea/client.go index 7916890..904e1bc 100644 --- a/blogo/gitea/client.go +++ b/blogo/gitea/client.go @@ -203,11 +203,11 @@ type contentsResponse struct { // NOTE: can be "file", "dir", "symlink" or "submodule" Type string `json:"type"` Size int64 `json:"size"` - // NOTE: populated just when `type` is "contentsResponseTypeFile" + // NOTE: populated just when `type` is "file" Encoding *string `json:"encoding"` - // NOTE: populated just when `type` is "contentsResponseTypeFile" + // NOTE: populated just when `type` is "file" Content *string `json:"content"` - // NOTE: populated just when `type` is "contentsResponseTypeSymlink" + // NOTE: populated just when `type` is "link" Target *string `json:"target"` URL *string `json:"url"` @@ -215,7 +215,7 @@ type contentsResponse struct { GitURL *string `json:"git_url"` DownloadURL *string `json:"download_url"` - // NOTE: populated just when `type` is "contentsResponseTypeSubmodule" + // NOTE: populated just when `type` is "submodule" SubmoduleGitURL *string `json:"submodule_giit_url"` Links *fileLinksResponse `json:"_links"`