How to Create an API for a Golang Chat Server