parsing

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: Apache-2.0 Imports: 5 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) 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