resolver

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* @Descripttion: 字符串插值语法解析器,对${var}的表达式进行解析 * @version: 1.0.0 * @Author: lfzxs@qq.com * @Date: 2023-06-15 15:28:01 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-06-21 11:35:16

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverService

type ResolverService interface {
	Resolution(cfgs loader.CfgSlice, env ...map[string]any) (result map[string]any, err error)
}

type StringInterpolation

type StringInterpolation struct {
}

func (*StringInterpolation) ExpandExpEnv

func (sf *StringInterpolation) ExpandExpEnv(env map[string]interface{}, exp string) (realValue string)

func (*StringInterpolation) ExpandValueAnalysis

func (sf *StringInterpolation) ExpandValueAnalysis(env map[string]interface{}, value string) (realValue string)

func (*StringInterpolation) ReplaceExp

func (sf *StringInterpolation) ReplaceExp(env map[string]any, content loader.CfgSlice) map[string]any

func (*StringInterpolation) Resolution

func (sf *StringInterpolation) Resolution(cfgs loader.CfgSlice, env ...map[string]any) (result map[string]any, err error)

Jump to

Keyboard shortcuts

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