This project is a demo of the webauthn library.
go get github.com/koesie10/webauthn-demo
go run .
This will start the server at port 9000, reachable at localhost:9000.
The Web Authentication API is only usable in Secure Contexts, i.e. HTTPS. Fortunately, localhost has also been defined as a secure context, so you will be able to test the Web Authentication API on localhost.