summaryrefslogtreecommitdiff
path: root/deviantion.go
diff options
context:
space:
mode:
Diffstat (limited to 'deviantion.go')
-rw-r--r--deviantion.go12
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" {