All the boilerplate needed for a Turso or LibSQL golang project to work on all platforms.
Go to file
Mason Payne 34541d687f initial commit 2024-08-19 01:07:19 -06:00
.idea initial commit 2024-08-19 01:07:19 -06:00
db initial commit 2024-08-19 01:07:19 -06:00
go.mod initial commit 2024-08-19 01:07:19 -06:00
go.sum initial commit 2024-08-19 01:07:19 -06:00
main.go initial commit 2024-08-19 01:07:19 -06:00
readme.md initial commit 2024-08-19 01:07:19 -06:00

readme.md

LibSQL Boilerplate Golang

Copy this repo to have a golang application that is already set up to work with libSQL.

How to use

  1. Copy this repo to your new project
  2. Modify two files.

go.mod needs a new package name. main.go needs to use the package name to import from {{packageName}}/db

  1. Set up your environment variables

LIBSQL_AUTH_TOKEN LIBSQL_DATABASE_URL