You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cakrawala b5bf8f0cea
[Typesense] add example how to connect with Go (#20)
2 years ago
..
Dockerfile [Typesense] add example how to connect with Go (#20) 2 years ago
docker-compose.yml [Typesense] add example how to connect with Go (#20) 2 years ago
go.mod [Typesense] add example how to connect with Go (#20) 2 years ago
go.sum [Typesense] add example how to connect with Go (#20) 2 years ago
main.go [Typesense] add example how to connect with Go (#20) 2 years ago
readme.md [Typesense] add example how to connect with Go (#20) 2 years ago

readme.md

RUNNING docker-compose

docker compose up -d

SHUTTING DOWN

docker compose down -v

ENV

set searchkey=<up-to-you>

CONNECT TO TYPESENSE

curl -f http://localhost:9108/health
  • the result should be
{"ok":true}%

RUNNING TEST CONNECTION WITH GO

go run main.go
  • the output should be
connection successfully true