gitee.com/zhongguo168a/gocodes@v0.0.0-20230609140523-e1828349603f/datax/stringx/replace_test.go (about)

     1  package stringx
     2  
     3  import (
     4  	"fmt"
     5  	"gitee.com/zhongguo168a/gocodes/datax"
     6  	"testing"
     7  )
     8  
     9  func TestReplace(t *testing.T) {
    10  	fmt.Println(ReplaceForamtTypeScript("${_id}:${内网地址}", datax.M{
    11  		"_id":  "1",
    12  		"内网地址": "2",
    13  	}))
    14  }