This commit is contained in:
Eduard Urbach 2019-04-30 23:59:53 +09:00
parent fe8a302466
commit 730bb0f9d1
7 changed files with 62 additions and 64 deletions

26
go.mod
View File

@ -6,23 +6,23 @@ require (
cloud.google.com/go v0.37.4 // indirect
github.com/OneOfOne/xxhash v1.2.5
github.com/StackExchange/wmi v0.0.0-20181212234831-e0a55b97c705 // indirect
github.com/aerogo/aero v1.1.2
github.com/aerogo/api v0.1.4
github.com/aerogo/aero v1.1.3
github.com/aerogo/api v0.1.5
github.com/aerogo/crawler v0.2.1
github.com/aerogo/http v1.0.1
github.com/aerogo/http v1.0.2
github.com/aerogo/layout v0.1.5
github.com/aerogo/log v0.1.2
github.com/aerogo/log v0.1.3
github.com/aerogo/markdown v0.1.5
github.com/aerogo/nano v0.1.5
github.com/aerogo/session-store-nano v0.1.2
github.com/aerogo/nano v0.1.6
github.com/aerogo/session-store-nano v0.1.3
github.com/aerogo/sitemap v0.1.1
github.com/akyoto/color v1.8.2
github.com/animenotifier/anilist v0.2.1
github.com/animenotifier/arn v1.1.8
github.com/animenotifier/kitsu v0.2.1
github.com/animenotifier/mal v0.2.1
github.com/animenotifier/shoboi v0.2.1
github.com/animenotifier/twist v0.2.1
github.com/akyoto/color v1.8.3
github.com/animenotifier/anilist v0.2.2
github.com/animenotifier/arn v1.1.9
github.com/animenotifier/kitsu v0.2.2
github.com/animenotifier/mal v0.2.2
github.com/animenotifier/shoboi v0.2.2
github.com/animenotifier/twist v0.2.2
github.com/bwmarrin/discordgo v0.19.0
github.com/dustin/go-humanize v1.0.0
github.com/go-ini/ini v1.42.0 // indirect

80
go.sum
View File

@ -16,56 +16,64 @@ github.com/aerogo/aero v1.1.1 h1:EgFwiU87K3Zt+rhkrzx4+U412pMi5onRsDKhMOfJCpU=
github.com/aerogo/aero v1.1.1/go.mod h1:GD7hyz4bLaDumYYNVJogq7ZjWZqmHpRPbkSl11MAhHI=
github.com/aerogo/aero v1.1.2 h1:O01aVpwkMhtExRdK7ebibZlF6J2todKzrTNaB2SILlc=
github.com/aerogo/aero v1.1.2/go.mod h1:2eeRN7zcyVq+wYNu3lnJBS7To5xDxKcJ89ay4GBchig=
github.com/aerogo/api v0.1.4 h1:CT0BSZhDW7fpLMZNPZPs8M42i+6+lgraKhlBFRd2Mkk=
github.com/aerogo/api v0.1.4/go.mod h1:QgEDNgcwYsxrNyRlpkiRlqi+B9b1++vAbnDaRA73KdI=
github.com/aerogo/cluster v0.1.3 h1:Pm+gdmXLtgXtvFdtYY6zVuHw72ax5yf11sLmpINmK4U=
github.com/aerogo/cluster v0.1.3/go.mod h1:lsMuIQ2gNlA0xUD9PJTGohL4nsbqH5WYS8l5d1XPRN4=
github.com/aerogo/aero v1.1.3 h1:9Az49zHZD2nexxFL9mm3Mk3gHwZUEzlRIpm172uY9RY=
github.com/aerogo/aero v1.1.3/go.mod h1:SGduBZ3vGNUjMRIBuFdYMyitv8In5ow0pwYcHKrJxkc=
github.com/aerogo/api v0.1.5 h1:P4HwoPvbSzHaTucSax0o8CDj4AMHNeJ0I55Ir3Y/rMI=
github.com/aerogo/api v0.1.5/go.mod h1:SajJMM1q5ARitmCfPkKEFMJtozHbJo5AA+SLBRgozgU=
github.com/aerogo/cluster v0.1.4 h1:mOTGqSicLyh9s7viVaniov6lCMLs6bTz/nkeJaEul+o=
github.com/aerogo/cluster v0.1.4/go.mod h1:lsMuIQ2gNlA0xUD9PJTGohL4nsbqH5WYS8l5d1XPRN4=
github.com/aerogo/crawler v0.2.1 h1:UjRjHU1kC5oWH44dcF/31SEWdlYuIH+LNiPbd+kYvdg=
github.com/aerogo/crawler v0.2.1/go.mod h1:d4FEcbJe3Z3UbC3GT2Q+RUujzcDrFOkyUtRfGSTsURU=
github.com/aerogo/csp v0.1.3 h1:1KPWzdfLRNllCTQx+KkxmcUBHiq2mBJcfjj4OUOgEUw=
github.com/aerogo/csp v0.1.3/go.mod h1:KNqnTFffuDwIPJxBEFTl3baBx+x3Vw+9kcMfu5APFJA=
github.com/aerogo/flow v0.1.1 h1:airfjOX4OlnD3vYV4z0nLLvisMpCqDngG3L8VPpNQEM=
github.com/aerogo/flow v0.1.1/go.mod h1:keyN5DTTeIzXFwmXPlfafDkx2NL+gZKEQk1sEQYgIZU=
github.com/aerogo/csp v0.1.4 h1:81ZK/uoHk61PKnqBO1lvX8+ldUScQox3RKnLoDjzpng=
github.com/aerogo/csp v0.1.4/go.mod h1:KNqnTFffuDwIPJxBEFTl3baBx+x3Vw+9kcMfu5APFJA=
github.com/aerogo/flow v0.1.2 h1:fZ3V7Bo7jwBjqnM1mWxYbg5O/FlQX2XovzMZU2D+o5M=
github.com/aerogo/flow v0.1.2/go.mod h1:xXIb7GY0AKouhbp4/ViCsiOmvvgRGonqPG30d6FnACI=
github.com/aerogo/http v1.0.0 h1:15a7Px8wGZbmgFqJMR1kBy3fWFkDfMZWexJzxhmFKe4=
github.com/aerogo/http v1.0.0/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ=
github.com/aerogo/http v1.0.1 h1:KTzYarhp5yougurxuAhJKFh3YvZ7R7CfaDVwJv5+xIs=
github.com/aerogo/http v1.0.1/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ=
github.com/aerogo/http v1.0.2 h1:X2H/naJ00sLORT59I6g9r5Wjda1ViBYGauOjgDwDDHs=
github.com/aerogo/http v1.0.2/go.mod h1:B1igUmMLpE6KabMpc9reHCJJNUOJ2U/PR9s1fF3TpPQ=
github.com/aerogo/layout v0.1.5 h1:cdEwBXwkwbx+ipC2trv0Ex4SABsvBZfSeQI5+SO0Idg=
github.com/aerogo/layout v0.1.5/go.mod h1:/gZBjVCr6fZcHRoe33s00sS6d19qtO/yEV0xlUh9UoM=
github.com/aerogo/linter-performance v1.0.0 h1:p+v7jfDHFXGzJ367iTdmKk2dKiqtz/TkHJMDRLWKFjs=
github.com/aerogo/linter-performance v1.0.0/go.mod h1:rsWhUG/KiUz+WRGSRkyN5kxbY1QEOshDdvW3zYAjF+Q=
github.com/aerogo/linter-performance v1.0.1 h1:/1Hak+7sxpO2AkjdMVcpkyurmA4YD77EDi7FRnLqnwM=
github.com/aerogo/linter-performance v1.0.1/go.mod h1:3ZXxPgQ0cEo0x6DCGZwXHrwKNYK86XvB5QRJR9s7Z6I=
github.com/aerogo/log v0.1.2 h1:SXr49B9T5+QgYDxJILjFy6pfQY7URc01VsjZ2sdJ0Iw=
github.com/aerogo/log v0.1.2/go.mod h1:n1m2DQLNfc2TPJkfFwYuRqoECjIsLvP+7GcMM3xsIRQ=
github.com/aerogo/log v0.1.3 h1:qnNK3VmNWv6tHHcAY1Sr1dk6+v0jEMefpxbyF5QiI9Q=
github.com/aerogo/log v0.1.3/go.mod h1:oCMbDHUynW5L04OZusEjCufSw4WVF8NAPy1vbspIDeM=
github.com/aerogo/markdown v0.1.5 h1:rzgRDgI7pL/c9Z+wu2Q9rVqr+a8gyB8tmGGl3Ce8Xxk=
github.com/aerogo/markdown v0.1.5/go.mod h1:e/ZnjP3vdg1yB5XKK89r/lAAqNRW6aqaD1dSZaTW2F4=
github.com/aerogo/mirror v0.1.2 h1:SrCxLhZcdZoCdLcLNCRoBhj6wfv1MKTPtLEwK2x6AOA=
github.com/aerogo/mirror v0.1.2/go.mod h1:7DstyO+lx2SfGHKbeKK+OnptcUYf9aF+2bVCSb2C45E=
github.com/aerogo/mirror v0.1.3 h1:813FatCdChOvgWen2EcZNnRfxAeo9zmu/TgDNOnsDx0=
github.com/aerogo/mirror v0.1.3/go.mod h1:Un87Jq8RIRrb2bU1CxVToJjVZgSMLUQXxVLCXln4rUU=
github.com/aerogo/nano v0.1.4 h1:t52/RbpKRpefR1whAbv2QQfyTTzx45ubfgeRrbnpCvg=
github.com/aerogo/nano v0.1.4/go.mod h1:EUL44K/8JjFGe1Eo+Ur5M6w0rFjIKfwmYPMLHQ1+DAU=
github.com/aerogo/nano v0.1.5 h1:MytcICzUeDv9g8JH2hEW5nqx9NhUFtRjipydEZrdKUc=
github.com/aerogo/nano v0.1.5/go.mod h1:EUL44K/8JjFGe1Eo+Ur5M6w0rFjIKfwmYPMLHQ1+DAU=
github.com/aerogo/nano v0.1.6 h1:FtWokAa8SZcm5kHlW10OkaUnqlFE4eQGvEfkiSBVsek=
github.com/aerogo/nano v0.1.6/go.mod h1:NxWlxJWtm2s4gB4CcJGy5Lsofz1ZgvEGtv5dEQVNa94=
github.com/aerogo/packet v0.1.3 h1:8SrI9KLYQiGAcDElvWeXAKqnydSIBDw0H5+y4A1fZuM=
github.com/aerogo/packet v0.1.3/go.mod h1:/t25yF9WG8B5/QB7wTiHLqwCEQ+nAze7uNm/JJNDQbQ=
github.com/aerogo/packet v0.1.4 h1:435YxvxMiH1KaBPELU+jCLqj0T9noLBSY4zk53t1gpQ=
github.com/aerogo/packet v0.1.4/go.mod h1:/t25yF9WG8B5/QB7wTiHLqwCEQ+nAze7uNm/JJNDQbQ=
github.com/aerogo/session v0.1.1 h1:NBy3+fPwyHAzollumyqptLIyLjFyHuIwYDcQOll7UVE=
github.com/aerogo/session v0.1.1/go.mod h1:A4S5dvAhpm+DRdQbno5Rn4Jvj0UVGJmOUKQXataNIDg=
github.com/aerogo/session v0.1.2 h1:f0X3YJQJcFhtmw47U60jdSsH18/T51SkhkhAuXwnYI8=
github.com/aerogo/session v0.1.2/go.mod h1:A4S5dvAhpm+DRdQbno5Rn4Jvj0UVGJmOUKQXataNIDg=
github.com/aerogo/session-store-memory v0.1.1 h1:ak8uPsbCtkX9yRWS+jWk+iJ8CI3MU/dNyZ0maIGRCJY=
github.com/aerogo/session-store-memory v0.1.1/go.mod h1:TRJb7R48J2wdeUsbZUg5KM+s8UB8F3kt6o4UhGcrFb8=
github.com/aerogo/session-store-memory v0.1.2 h1:cMW37hSw40f3C33QewJSr7uK9/oNSVFOt18F7Z5BGl8=
github.com/aerogo/session-store-memory v0.1.2/go.mod h1:LiE9UU+yI4pDl+nNVKDdmoKcmc+kaV0pW+b+R00YTrs=
github.com/aerogo/session-store-nano v0.1.2 h1:GbNzUrkonGfLPoMEeeC1vldRShogmQcRWnYr2XYlsEo=
github.com/aerogo/session-store-nano v0.1.2/go.mod h1:hDyV3GDNZB0fq3xAc1dvVd9wnfl/6IlrQAXN93J179E=
github.com/aerogo/session-store-memory v0.1.3 h1:6tPSh4HrJald0akOQIdUc8S1MxmBaOs1eXgC9Yiz2co=
github.com/aerogo/session-store-memory v0.1.3/go.mod h1:GYiLJNk8h3pcBB/UwfCJrtTZl1CLxBg8xnzt45wPmIM=
github.com/aerogo/session-store-nano v0.1.3 h1:k1KjV7yBCHEmib7jWoAgCXGZR4OKH73dHPtpuBXdynA=
github.com/aerogo/session-store-nano v0.1.3/go.mod h1:CNYthyEUjJmmZKTMKkejAo3RfNYXbOY9T849IoZ6XKk=
github.com/aerogo/sitemap v0.1.1 h1:GuZfjQTEAFCh3BEkFJ64PJB7bm8pdPyVLAXJu+GiD18=
github.com/aerogo/sitemap v0.1.1/go.mod h1:/1NT13qIsTm/ydlZHEMd8m014E2yyQkI5coimmIfqc0=
github.com/akyoto/color v1.8.1 h1:HpoHQMGnBYZNpNuayXDKJMlGKvbvGipLYRtGV24SOgM=
github.com/akyoto/color v1.8.1/go.mod h1:M0u9nnLt9zM2qp08X40EVVFeR+FgNI2NG0InuiDBTQ0=
github.com/akyoto/color v1.8.2 h1:FOTpvfQkCk00yCl8oU/wjO3+jBi3FWpwUogLkeyzWfU=
github.com/akyoto/color v1.8.2/go.mod h1:wiwOfYJb0XdHYznfIes7wjr79A/EjGPZ64FfbwJv4RY=
github.com/akyoto/color v1.8.3 h1:d+xQM5ra9aCxUzchbxSX2Szkd7cQwuJARSQMzNb3aLM=
github.com/akyoto/color v1.8.3/go.mod h1:wiwOfYJb0XdHYznfIes7wjr79A/EjGPZ64FfbwJv4RY=
github.com/akyoto/go-matroska v0.1.0 h1:efUbSmfeHHLqYxWBHkrllHSWX5JrxYaYNGkQ8CEr98s=
github.com/akyoto/go-matroska v0.1.0/go.mod h1:x+GUVwyby6HN/MKKNP4BvGqP9VrHuEznfBf288gehek=
github.com/akyoto/imageoutput v0.1.2 h1:AavZrHn6q1F1I1x5lN3L5cr2B3ba8tkSlw+OCxFt1og=
@ -76,26 +84,26 @@ github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuy
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o=
github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/animenotifier/anilist v0.2.1 h1:RmrJwgD/5o/RQb2fxcrhho1T9VO5xWXaNcBunjY8ztU=
github.com/animenotifier/anilist v0.2.1/go.mod h1:orL7qr/k64K2YEUYESjr1rhp6+0BXdJmiANxG3OV30U=
github.com/animenotifier/arn v1.1.8 h1:gfkFc067atT2cUBf2t6/tHFC3YLCDOvVHPZV7y5i5hA=
github.com/animenotifier/arn v1.1.8/go.mod h1:Nn5vpC/WGPQtyK0+0nbGDi5a6duO/i00D1hRKX1KRMY=
github.com/animenotifier/anilist v0.2.2 h1:zLL9KabDJx2a+yNT+b13ORWvKlLTsFL67hBKLXyImSI=
github.com/animenotifier/anilist v0.2.2/go.mod h1:orL7qr/k64K2YEUYESjr1rhp6+0BXdJmiANxG3OV30U=
github.com/animenotifier/arn v1.1.9 h1:ucdhinLzQDbVPPhh9M0dUCD0ZRAb3CnuaTNQPd5tA4k=
github.com/animenotifier/arn v1.1.9/go.mod h1:g+CU4VlycjzRCVArVCp/8UMWGjYcMcB+1kjnPWvpsdI=
github.com/animenotifier/ffxiv v0.1.0 h1:N9gX5iUtD+g/KW4OjKIclS0y2WrL/+Ko9rGEFDaLf1w=
github.com/animenotifier/ffxiv v0.1.0/go.mod h1:oBHhRzQAUv+dBe4qFJAFnTg7qv5Gl6QFHQphyJla74Q=
github.com/animenotifier/japanese v0.2.1 h1:O2Fui6+8pmdniQ+swSf+Yp276+iTrSTfvImPRclbFFU=
github.com/animenotifier/japanese v0.2.1/go.mod h1:HLrrnBE9ztkw9iMcVrm7DKaXydAq21UpZIp1MpKajQI=
github.com/animenotifier/kitsu v0.2.1 h1:jHkEkm/HKURUIrlQq3ClwSFOXHy+VwhHxGscljlhg1Y=
github.com/animenotifier/kitsu v0.2.1/go.mod h1:lyzQXPb0KRPX7fAhvkmGxvfdqnTjsd0R94nW0MKsUXY=
github.com/animenotifier/mal v0.2.1 h1:x65EcBc84AHB6okvCXiIQxiz8MrhkgUqz6eU0/BG020=
github.com/animenotifier/mal v0.2.1/go.mod h1:HF/6kT5D9ZqEBNvIXnicMs4PfRK1LdF9lEurmXctlfQ=
github.com/animenotifier/kitsu v0.2.2 h1:+OzzNO187GyUocn6vJMabxSNkTAz9DIqPQLMLDbqSDY=
github.com/animenotifier/kitsu v0.2.2/go.mod h1:lyzQXPb0KRPX7fAhvkmGxvfdqnTjsd0R94nW0MKsUXY=
github.com/animenotifier/mal v0.2.2 h1:pnqbC0ZlCngg48v0W1YnFrYDyJRgMSZvVPXCgPJ7rhY=
github.com/animenotifier/mal v0.2.2/go.mod h1:HF/6kT5D9ZqEBNvIXnicMs4PfRK1LdF9lEurmXctlfQ=
github.com/animenotifier/osu v0.1.0 h1:hohUvID0x2c7Yy5IAgikDG/V3GavuNORNlK7eHgtRe0=
github.com/animenotifier/osu v0.1.0/go.mod h1:Q8ALGMj+LHrGGDjq0a2hZd3QtHDKlE2HHmsyKxUYlPQ=
github.com/animenotifier/overwatch v0.1.0 h1:GGt/4iZdR15j9TBO6YyG06zIflnlAS1Y4yigTwyNQ5Y=
github.com/animenotifier/overwatch v0.1.0/go.mod h1:mVw/QAd1Kvy0umdBarb/fO9l3aA6OUMvam3CehpwCqU=
github.com/animenotifier/shoboi v0.2.1 h1:EtDAV3Yw0Q0ZpeSTV4GDO3KlIhS0+EBT/pL+Q8GabmQ=
github.com/animenotifier/shoboi v0.2.1/go.mod h1:ogHe4CXlTbNHYgxEwa8Cpt7K+undsSU5q+O7OXkssqY=
github.com/animenotifier/twist v0.2.1 h1:/meb8VkoB1gPWUeHhwvU+uEmOhT/Uj2SrxDiPTkoYac=
github.com/animenotifier/twist v0.2.1/go.mod h1:M5KT6hwxdJEYefD6eX3M1zWlVXfZ5HCC/xhvvzvOLUY=
github.com/animenotifier/overwatch v0.1.1 h1:1Vjr+pymQ9sojcbfzdLNJsGJo0zLTOgk9Kq5YXuaEt4=
github.com/animenotifier/overwatch v0.1.1/go.mod h1:hK5VChIAmmb24ogITqHVfgzk9993x3+Lxrdw/5Unldw=
github.com/animenotifier/shoboi v0.2.2 h1:u5kS1rLyhSdtzxayaAp/BCyyw6es8iSrg61N+IBqM/Q=
github.com/animenotifier/shoboi v0.2.2/go.mod h1:g2IkT1k8SQprtvn9xbGiMCwVbeBYWRx6+2R7TH/lrq8=
github.com/animenotifier/twist v0.2.2 h1:mU/Lqz+EPIxsSVNO/AbCnzl7f/z85tpel+EB0G+hdsI=
github.com/animenotifier/twist v0.2.2/go.mod h1:M5KT6hwxdJEYefD6eX3M1zWlVXfZ5HCC/xhvvzvOLUY=
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/bwmarrin/discordgo v0.19.0 h1:kMED/DB0NR1QhRcalb85w0Cu3Ep2OrGAqZH1R5awQiY=
@ -208,8 +216,6 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
@ -255,12 +261,6 @@ github.com/ventu-io/go-shortid v0.0.0-20171029131806-771a37caa5cf/go.mod h1:6rZq
github.com/xrash/smetrics v0.0.0-20170218160415-a3153f7040e9 h1:w8V9v0qVympSF6GjdjIyeqR7+EVhAF9CBQmkmW7Zw0w=
github.com/xrash/smetrics v0.0.0-20170218160415-a3153f7040e9/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.uber.org/atomic v1.3.2 h1:2Oa65PReHzfn29GpvgsYwloV9AVFHPDk8tYxt2c2tr4=
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/multierr v1.1.0 h1:HoEmRHQPVSqub6w2z2d2EOVs2fjyFRGyofhKuyDq0QI=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/zap v1.9.1 h1:XCJQEf3W6eZaVwhRBof6ImoYGJSITeKWsyeh3HFu/5o=
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
@ -314,8 +314,8 @@ golang.org/x/sys v0.0.0-20190426135247-a129542de9ae h1:mQLHiymj/JXKnnjc62tb7nD5p
golang.org/x/sys v0.0.0-20190426135247-a129542de9ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190428183149-804c0c7841b5 h1:m0i9YywO9THhxmJvLEwKJDD/pD8ljCB+EaT/wYS41Is=
golang.org/x/sys v0.0.0-20190428183149-804c0c7841b5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190429094411-2cc0cad0ac78 h1:ddnrbGOgFiC0zV+uaYoSkl0f47vnII6Zu426zWQrWkg=
golang.org/x/sys v0.0.0-20190429094411-2cc0cad0ac78/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190429190828-d89cdac9e872 h1:cGjJzUd8RgBw428LXP65YXni0aiGNA4Bl+ls8SmLOm8=
golang.org/x/sys v0.0.0-20190429190828-d89cdac9e872/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 h1:z99zHgr7hKfrUcX/KsoJk5FJfjTceCKIp96+biqP4To=

View File

@ -8,7 +8,7 @@ import (
"github.com/akyoto/color"
"github.com/animenotifier/arn"
"github.com/animenotifier/mal"
"github.com/animenotifier/mal/parser"
malparser "github.com/animenotifier/mal/parser"
)
// Read anime file

View File

@ -7,7 +7,7 @@ import (
"github.com/akyoto/color"
"github.com/animenotifier/arn"
"github.com/animenotifier/mal/parser"
malparser "github.com/animenotifier/mal/parser"
)
// Read character file

View File

@ -22,7 +22,7 @@ component SoundTrackMedia(track *arn.SoundTrack)
.media-play-area.action(data-action="toggleAudio", data-trigger="click", data-audio-src="https://notify.moe/audio/" + track.File, data-media-id=track.ID)
img.media-image.lazy(data-src="https://img.youtube.com/vi/" + track.MediaByService("Youtube")[0].ServiceID + "/0.jpg", alt=track.Title)
button.media-play-button
button.media-play-button(aria-label="Play soundtrack")
RawIcon("play")
.media-visualizer

View File

@ -1,14 +1,13 @@
package utils
import (
"bytes"
"html"
"strings"
)
// RenderQuoteText renders the given quote text.
func RenderQuoteText(text string) string {
buffer := bytes.Buffer{}
buffer := strings.Builder{}
buffer.WriteString("<p>")
lines := strings.Split(text, "\n")

View File

@ -1,7 +1,6 @@
package editform
import (
"bytes"
"fmt"
"reflect"
"strconv"
@ -21,7 +20,7 @@ func Render(obj interface{}, title string, user *arn.User) string {
lowerCaseTypeName := strings.ToLower(t.Name())
endpoint := `/api/` + lowerCaseTypeName + `/` + id.String()
var b bytes.Buffer
var b strings.Builder
b.WriteString(`<div class="widget-form">`)
b.WriteString(`<div class="widget" data-api="` + endpoint + `">`)
@ -85,7 +84,7 @@ func Render(obj interface{}, title string, user *arn.User) string {
// RenderObject renders the UI for the object into the bytes buffer and appends an ID prefix for all API requests.
// The ID prefix should either be empty or end with a dot character.
func RenderObject(b *bytes.Buffer, obj interface{}, idPrefix string) {
func RenderObject(b *strings.Builder, obj interface{}, idPrefix string) {
t := reflect.TypeOf(obj)
v := reflect.ValueOf(obj)
@ -102,7 +101,7 @@ func RenderObject(b *bytes.Buffer, obj interface{}, idPrefix string) {
}
// RenderField ...
func RenderField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, idPrefix string) {
func RenderField(b *strings.Builder, v *reflect.Value, field reflect.StructField, idPrefix string) {
fieldValue := reflect.Indirect(v.FieldByName(field.Name))
// Embedded fields
@ -173,7 +172,7 @@ func RenderField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, i
}
// String field
func renderStringField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, idPrefix string, fieldValue reflect.Value) {
func renderStringField(b *strings.Builder, v *reflect.Value, field reflect.StructField, idPrefix string, fieldValue reflect.Value) {
idType := field.Tag.Get("idType")
// Try to infer the ID type by the field name
@ -246,7 +245,7 @@ func renderStringField(b *bytes.Buffer, v *reflect.Value, field reflect.StructFi
}
// Slice field
func renderSliceField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, idPrefix string, fieldType string, fieldValue reflect.Value) {
func renderSliceField(b *strings.Builder, v *reflect.Value, field reflect.StructField, idPrefix string, fieldType string, fieldValue reflect.Value) {
b.WriteString(`<div class="widget-section">`)
b.WriteString(`<h3 class="widget-title">`)
b.WriteString(field.Name)