Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fluffy-bunny/go-app-base-href

Repository files navigation

go-app-base-href

Hosting go-app in base href sub folders

build the wasm and static files.

make generate-static

This produces 2 outputs. One is a base line where I didn't change anything. The other is an attempt to host the wasm in a subfolder. i.e. localhost:3556/demo1/

baseline

go run .\cmd\baseline_server_host\

baseline host

alt text

base href

I am using a base href resolver to strip off the / prefix so that things work with

		RawHeaders: []string{
			"<base href=\"/demo1/\">",
		},
go run .\cmd\href_server_host\

base href host

alt text
alt text
alt text

About

Hosting go-app in base ref sub folders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published