package main

import (
	"encoding/base64"
	"io/ioutil"
	"log"
)

func main() {

	data, err := ioutil.ReadFile("audio.mp3")
	if err != nil {
		log.Fatal(err)
	}
	audiostr := base64.RawStdEncoding.EncodeToString(data)

	videodata, err := ioutil.ReadFile("video.webm")

	if err != nil {
		log.Fatal(err)
	}

	videostr := base64.RawStdEncoding.EncodeToString(videodata)

	ioutil.WriteFile("output.html", []byte(
		`<html>
			<head></head>
			<body style="background-color: black;">
				<audio style="display:hidden;"
				       loop="loop"
					   autoplay
					   src="data:audio/mp3;base64,`+audiostr+`"></audio>
				<video style="height:100%;width:100%;"
				       loop="loop"
					   autoplay
					   src="data:video/webm;base64,`+videostr+`"></video>
			</body>
		</html>`), 0666)
}

Изменить пасту