fossil

command module
v0.0.0-...-88c5cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2017 License: MIT Imports: 4 Imported by: 0

README

Fossil

Convert text files to Go Constants.

See Design.md

Usage

tree input

input
└── sql
    ├── delete.sql
    ├── select.sql
    ├── sub
    │   └── insert.sql
    └── update.sql
fossil build input -o output
tree output

output
└── sql
    ├── delete.sql.go
    ├── select.sql.go
    ├── sub
    │   └── insert.sql.go
    └── update.sql.go
package main

import (
	sqlFiles "github.com/futurenda/fossil/examples/output/sql"
	sqlSubFiles "github.com/futurenda/fossil/examples/output/sql/sub"

	"database/sql"
)

func run(db *sql.DB) {
	db.Exec(sqlFiles.Delete, 1, 2)
	db.Exec(sqlSubFiles.Insert, 1, 2)
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL