codegen

command
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 9 Imported by: 0

README

Xata Go Codegen

This is a code generator for Go. It is used to generate code from Xata database.

Usage

Add a file in the root of your project (usually named xata.go):

//go:generate go run github.com/kerdokurs/xata-go/cmd/codegen -out database -package database
package main

Then run go generate in the root of your project.

Options

Usage of codegen:
  -out string
        Output directory (default "xata")
  -package string
        Package name (default "xata")
  -only string
        Only generate these tables (comma separated, case-sensitive)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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