run on docker 🚢
docker-compose up -d
docker exec -it cassandra cqlsh;
CREATE KEYSPACE todo WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
use todo
create table todo (id text primary key, title text, content text);
select * from todo
used packages 📦
- Web framework: go get -u github.com/gin-gonic/gin
- Read Configuration file : go get -u github.com/spf13/viper
- Logging : go get -u github.com/sirupsen/logrus
- Cassandra : go get -u github.com/gocql/gocql
documentation: Related Post. ✏️ 📖