Go WebSocket server

I have task assigment to implement HTTP server on Go and there are guidelines: Server should listen for WebSocket connections on /ws path. Server should accept only text type messages….