lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
262 stars 125 forks source link

Register defaultSubProtocol #145

Closed andig closed 2 years ago

andig commented 2 years ago

This PR moves registration of the ocpp1.6 subprotocol to the websocket client for sake of https://github.com/lorenzodonini/ocpp-go/issues/141#issuecomment-1256938448 without importing types (which, in turn, created the import cycle).

Formatting changes are due to the go fmt updates of Go 1.19.