PushTargetsfield is a map of filenames to be served without additional client's requests (HTTP/2 Push) when a specific request relative path hits an Index.
PushTargetsRegexpfield can be used instead (recommended), to automatically serve common assets based on a regular expression:
http.FileServerto pass into
main.gofile and copy-paste the following code:
go run .