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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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