func confAmq( amqConfPath string, confPolicyEntry string, confLevelDB string) string { xmlStr := gd.StrFromFilePath(amqConfPath) xmlMap, _ := mxj.NewMapXml([]byte(xmlStr)) step := Step{&xmlMap} // flow (&step). SetJvmHeap("80"). RemoveLogQuery(). InsertPolicyEntry(confPolicyEntry). RemoveKahadb(). AddLevelDB(confLevelDB). FixAmpersand(). FixColonKey() // dd(xmlMap) resultBytes, _ := mxj.AnyXmlIndent( xmlMap["beans"], "", " ", "beans") r := gd.BytesToString(resultBytes) return r }
func confJetty(jettyConfPath string, portValue string) string { xmlStr := gd.StrFromFilePath(jettyConfPath) // pln(xmlStr) xmlMap, _ := mxj.NewMapXml([]byte(xmlStr)) // dd(xmlMap) // pln(typeof(xmlMap)) step := Step{&xmlMap} (&step). SetJettyPort(portValue). FixColonKey() // dd(xmlMap) resultBytes, _ := mxj.AnyXmlIndent(xmlMap["beans"], "", " ", "beans") r := gd.BytesToString(resultBytes) return r }