style: rename accessors to idiomatic names

This commit is contained in:
Mathis Maquenne
2026-08-05 11:47:53 +02:00
parent 88319ebb3c
commit f8b301e24c
16 changed files with 46 additions and 46 deletions
+2 -2
View File
@@ -18,10 +18,10 @@ type mediaError struct {
Message string `json:"message"`
}
func (m *Media) GetURL() string {
func (m *Media) URL() string {
return m.Data[0].Media[0].Sources[0].URL
}
func (m *Media) GetFormat() string {
func (m *Media) Format() string {
return m.Data[0].Media[0].Format
}