parsing

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicData

type DynamicData struct {
	OriginData     string
	DynamicElemMap map[string]DynamicElement
}

func (*DynamicData) ParseMetadata added in v0.2.1

func (m *DynamicData) ParseMetadata(driverName string, params ...interface{}) (*sqlparser.Metadata, error)

func (*DynamicData) Replace

func (m *DynamicData) Replace(params ...interface{}) string

func (*DynamicData) ReplaceWithMap

func (m *DynamicData) ReplaceWithMap(objParams map[string]interface{}) string

需要外部确保param是一个struct

type DynamicElement

type DynamicElement interface {
	Format(func(key string) string) string
}

type GetFunc

type GetFunc func(key string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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