GoESL is a very simple and straight forward Go package designed to interact with FreeSWITCH ESL. GoESL supports both client and server. Server is used to bind and listen for incoming FreeSWITCH messages where client is used for sending API commands. GoESL package contains few helpers which can be found in helpers.go so you can easily answer, hangup or send api events.
If you're unsure how to do it Go Getting Started will help you out.
How To / Examples
Following block of the code is the only thing you will need to do in order to import GoESL
All available examples can be found at GoESL Examples
Following example will connect to FreeSWITCH event socket interface and send originate api command
You can run this code by saving it as client.go and than running
Server Example (TTS)
Following example will start server and listen for incoming messages. Once received speak (TTS) will be initiated to the originator.
You can run this code by saving it as tts_server.go and than running