core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package core defines main logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name        string
	Annotations string
	Type        string
	PrimaryKey  bool
}

type Core

type Core struct {
	// contains filtered or unexported fields
}

Core defines main logic of the app

func New

func New(dirName, filename string, t map[string]*Table) *Core

New creates core object

func (*Core) Do

func (c *Core) Do() error

Do provides generation of the gorm tables

type Table

type Table struct {
	Name    string
	Columns map[string]Column
}

Table represents gorm model definition

Jump to

Keyboard shortcuts

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