go-elasticsearch-app Prerequisite ElasticSearch is installed. Reference - Docker ELK ElasticSearch connection details should be configured in Elastic.go file. How to run code? go run . References Elasticsearch in Go: A Developer's Guide Stapi API How to connect to ElasticSearch in Go? Elasticsearch Query Examples – Hands-on Tutorial