diff options
| author | lost+skunk <[email protected]> | 2024-06-27 14:52:33 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-06-27 14:52:33 +0300 |
| commit | efa4b86a67d67ce9ff1ff19391dbf73f13daece6 (patch) | |
| tree | 44798c595a1e777b3cd4f58f7f60179fb79c9fc8 /deviantion.go | |
| parent | cec788554afe20b8c67357ede087b3c5c543be89 (diff) | |
| download | devianter-efa4b86a67d67ce9ff1ff19391dbf73f13daece6.tar.gz devianter-efa4b86a67d67ce9ff1ff19391dbf73f13daece6.tar.bz2 devianter-efa4b86a67d67ce9ff1ff19391dbf73f13daece6.zip | |
крымские наработки
Diffstat (limited to 'deviantion.go')
| -rw-r--r-- | deviantion.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deviantion.go b/deviantion.go index 19405a4..e955b12 100644 --- a/deviantion.go +++ b/deviantion.go @@ -35,21 +35,21 @@ type Deviation struct { Stats struct { Favourites, Views, Downloads int } - Media media + Media Media Extended struct { Tags []struct { Name string } - DescriptionText text + DescriptionText Text RelatedContent []struct { Deviations []Deviation } } - TextContent text + TextContent Text } // её выпердыши -type media struct { +type Media struct { BaseUri string Token []string Types []struct { @@ -58,7 +58,7 @@ type media struct { } } -type text struct { +type Text struct { Excerpt string Html struct { Markup, Type string @@ -83,7 +83,7 @@ type Post struct { } // преобразование урла в правильный -func UrlFromMedia(m media) string { +func UrlFromMedia(m Media) string { var url strings.Builder for _, t := range m.Types { if t.T == "fullview" { |
