devTools

package
v0.0.0-...-04dc92c Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDynamicDocumentation

func BuildDynamicDocumentation(mapPath, tPath string)

BuildDynamicDocumentation will read in all the mapping files and create an html document

func BuildNewMappingFiles

func BuildNewMappingFiles(mapFilesDir string)

BuildNewMappingFiles builds the new syle map files from the old style mapping files from a passed in directory

func BuildRobustMapping

func BuildRobustMapping(simpleMap map[string]string) map[string]qbwcGo.MappingObject

BuildRobustMapping will take a map[string]string and build a map[string]MappingObject. Origionally for converting old mapping files to the new, more robust mapping objects

func LoadTemplate

func LoadTemplate(tPath *string, ctx interface{}, requestBody *bytes.Buffer)

LoadTemplate will take a path a data struct and a bytes.Buffer tehn load the template

func ReadFieldMapping

func ReadFieldMapping(mapPath string) map[string]string

ReadFieldMapping reads the json field map file and returns a map

func ReadRobustFieldMapping

func ReadRobustFieldMapping(mapPath string) map[string]qbwcGo.MappingObject

ReadRobustFieldMapping reads the json field map file and returns a map

func ScanAllFilesInDir

func ScanAllFilesInDir(mapFilesDir string, job func(os.FileInfo))

ScanAllFilesInDir will look through all files in a given directory and execute the passed in function

func ScanForCV3Fields

func ScanForCV3Fields(mapFilesDir string)

ScanForCV3Fields will look through the robust mapping files and let me know the fiel and field that has a populated cv3Field

Types

This section is empty.

Jump to

Keyboard shortcuts

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