tmpl

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteGolangToFile

func ExecuteGolangToFile(proxy, noProxy, privateKeyFile, publicKeyFile, file string) error

func ExecuteNodesToFile

func ExecuteNodesToFile(proxy, noProxy, privateKeyFile, publicKeyFile, file string) error

Types

type Tpl

type Tpl string
const GolangTpl Tpl = `` /* 1550-byte string literal not displayed */
const NodesTpl Tpl = `` /* 840-byte string literal not displayed */

NodesTpl is the template of nodes.yaml Proxy is proxy addr exec, ex 192.168.64.1:7890 NoProxy is no proxy addr exec, ex 192.168.0.0/16 PrivateKey is private key file context PublicKey is public key file context

func (Tpl) Execute

func (tpl Tpl) Execute(data map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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