KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
gotsql
★ 17
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
Multi-Layer-Skybox
:
No description available.
onvif
:
IP camera ptz control
kardex2pdf
:
Extension de chrome que transforma tu Kardex (boleta del IPN en el SAES) a un "unofficial transcript" en formato de PDF en ingles.
MAX2870
:
Arduino support for the MAX2870 Wideband Frequency Synthesizer chip from Maxim
banking-app
:
Banking app in ReactJS.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
gotsql
?
Download (.md)
# GoTSQL - A Better Way to Organize SQL codebase using Templates in Golang 1. Installation through Go Get command ```bash $ go get github.com/migopsrepos/gotsql ``` 2. Initialize the GoTSQL object ```go import "github.com/migopsrepos/gotsql" ... g := gotsql.GoTSQL{} ``` 3. Load the template file or directory with template files. (Templates are discussed in detail in next section) ```go g.Load("library/") ... g.Load("library_dev/") ``` 4. Get the query using namespace and use it in Golang ```go query, err := g.Get("library/books/crud/getAllBooks", nil) ... rows, err := db.Query(query, ...) > You can find the usage and more examples in this [article](https://www.migops.com/blog/2021/10/22/organizing-postgresql-codebase-using-templates-in-golang/)