This PR fixes the examples attached to this project. In particular, inside of them, composite literals were used to create new ServeMuxConfig instances instead of passing nil to the NewServeMuxConfig function. This was causing the applications to panic during the Mux() method execution.
In addition, some tests have been introduced in order to be notified in case of future breaks.
[x] Tests pass
[ ] Appropriate changes to README are included in PR
This PR fixes the examples attached to this project. In particular, inside of them, composite literals were used to create new
ServeMuxConfig
instances instead of passingnil
to theNewServeMuxConfig
function. This was causing the applications to panic during theMux()
method execution.In addition, some tests have been introduced in order to be notified in case of future breaks.