tcltmpl

package module
v0.0.0-...-7c67dae Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 19 Imported by: 0

README

tcltmpl

Looks similar to safekeeper but it is completely different.

(a) uses the golang template format

(b) uses the environment and tcl files as mapper data

The outcome should be obvious.

Example

tcltmpl  --input=file1.tcl,file2.tcl --output=out template.test

Build

go get -u git.bucker.net/netcentrix/tcltmpl

or with docker

docker build --rm -t envtmpl .
docker run --rm -v `pwd`:/src tcltmpl

The executable is in the bin folder

As a dependency

if your project depends on this tool... the easiest way to include it...

go get -u git.bucker.net/netcentrix/tcltmpl/...

And this way the tcltmpl executable will be in the path.

LICENSE

Licensed under MIT license.

Documentation

Overview

Copyright (c) 2015 One Off Code LLC

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(v interface{}, i interface{}) interface{}

func Alpha

func Alpha(v interface{}) interface{}

func CommandPuts

func CommandPuts(i *picol.Interp, argv []string, pd interface{}) (string, error)

func CommandSet

func CommandSet(i *picol.Interp, argv []string, pd interface{}) (string, error)

func Compress

func Compress(value string) string

func Contains

func Contains(s interface{}, substr interface{}) interface{}

func Dec

func Dec(v interface{}) int

func Distance

func Distance(lat1, long1, lat2, long2 interface{}) float64

func Env

func Env(key string) string

func FilterList

func FilterList(c, f, t interface{}) string

func FindMonth

func FindMonth(v interface{}, i interface{}) interface{}

func Haversine

func Haversine(lonFrom float64, latFrom float64, lonTo float64, latTo float64) (distance float64)

func Inc

func Inc(v interface{}) int

func Int

func Int(v interface{}) int

func ItemCodeFilterList

func ItemCodeFilterList(f, t interface{}) string

func LastDayOfMonth

func LastDayOfMonth(v interface{}) string

func LoadKeyValues

func LoadKeyValues() (map[string]string, error)

loadKeyValues loads all values for the keys specified via the command-line flag

func MDCode

func MDCode() interface{}

func Month

func Month(v interface{}) interface{}

func MonthYear

func MonthYear(v interface{}) interface{}

func N

func N(start interface{}, end interface{}) (stream chan int)

func N1

func N1(start interface{}, end interface{}) (stream chan int)

func Picol

func Picol(f string, quiet, debug bool) error

func Run

func Run(comment, in, out string, quiet, debug bool, inputPaths []string) error

func Split

func Split(s string, d string) []string

func SplitSet

func SplitSet(x ...interface{}) string

func SplitSetNum

func SplitSetNum(v interface{}) string

func Title

func Title(s string) string

func WeekStartEnd

func WeekStartEnd(v interface{}) string

func YYYYMM

func YYYYMM(v interface{}) string

func YYYYMMM

func YYYYMMM(v interface{}) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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