SkillAgentSearch skills...

Goyesql

Go + Yesql

Install / Use

/learn @nleof/Goyesql
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Go Go Report Card GoDoc

goyesql

Golang + Yesql

Parse a file and associate SQL queries to a map. Useful for separating SQL from code logic.

Installation

$ go get -u github.com/nleof/goyesql

Usage

Create a file containing your SQL queries

-- queries.sql

-- name: list
SELECT *
FROM foo;

-- name: get
SELECT *
FROM foo
WHERE bar = $1;

And just call them in your code!

queries := goyesql.MustParseFile("queries.sql")
// use queries["list"] with sql/database, sqlx ...

Enjoy!

Related Skills

View on GitHub
GitHub Stars253
CategoryData
Updated15d ago
Forks11

Languages

Go

Security Score

95/100

Audited on Mar 21, 2026

No findings