templates

package
v0.0.0-...-26bbc2a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplateDown

func ApplyTemplateDown(param *DownParam) (string, error)

ApplyTemplateDown Execute template to create migration SQl to delete Table

func ApplyTemplateUp

func ApplyTemplateUp(param *UpParam) (string, error)

ApplyTemplateUp Execute template

Types

type DownParam

type DownParam struct {
	MessageName string
	TableName   string
}

DownParam holds information to be used in template

type UpParam

type UpParam struct {
	MessageName string
	TableName   string
	Lines       []string
}

UpParam holds information to be used in template

Jump to

Keyboard shortcuts

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