gofmt -s -w .

This commit is contained in:
Nazar Kanaev 2021-04-06 08:43:15 +01:00
parent 614dcc8975
commit 2df2f41516
11 changed files with 30 additions and 34 deletions

View file

@ -9,7 +9,7 @@ func TestYoutubeIframe(t *testing.T) {
"https://youtu.be/dQw4w9WgXcQ",
}
for _, link := range links {
have := VideoIFrame(link)
have := VideoIFrame(link)
want := `<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" width="560" height="315" frameborder="0" allowfullscreen></iframe>`
if have != want {
t.Logf("want: %s", want)
@ -25,7 +25,7 @@ func TestVimeoIframe(t *testing.T) {
"https://vimeo.com/526381128",
}
for _, link := range links {
have := VideoIFrame(link)
have := VideoIFrame(link)
want := `<iframe src="https://player.vimeo.com/video/526381128" width="640" height="360" frameborder="0" allowfullscreen></iframe>`
if have != want {
t.Logf("want: %s", want)