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 ¶
- type ResolverService
- type StringInterpolation
- func (sf *StringInterpolation) ExpandExpEnv(env map[string]interface{}, exp string) (realValue string)
- func (sf *StringInterpolation) ExpandValueAnalysis(env map[string]interface{}, value string) (realValue string)
- func (sf *StringInterpolation) ReplaceExp(env map[string]any, content loader.CfgSlice) map[string]any
- func (sf *StringInterpolation) Resolution(cfgs loader.CfgSlice, env ...map[string]any) (result map[string]any, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResolverService ¶
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 (*StringInterpolation) Resolution ¶
Click to show internal directories.
Click to hide internal directories.