<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>工具集 on 潇洒哥和黑大帅</title>
    <link>/tools/</link>
    <description>Recent content in 工具集 on 潇洒哥和黑大帅</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 09 Mar 2022 11:08:56 +0800</lastBuildDate><atom:link href="/tools/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>在线工具：YAML转Go Struct</title>
      <link>/tools/sql2mongodb/</link>
      <pubDate>Wed, 09 Mar 2022 11:08:56 +0800</pubDate>
      
      <guid>/tools/sql2mongodb/</guid>
      <description>转换 复制 清空 SQL MongoDB let input = new highlight( document.getElementById(&#34;input&#34;), &#34;javascript&#34;, &#34;select id,salary from employee where age = 35 and (designation = &#39;manager&#39; or (lastname = &#39;johnson&#39; and firstname like &#39;%john%&#39;))&#34; ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;json&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } function convert()</description>
    </item>
    
    <item>
      <title>在线工具：SQL转ElasticSearch DSL</title>
      <link>/tools/sql2es/</link>
      <pubDate>Wed, 18 Aug 2021 11:53:56 +0800</pubDate>
      
      <guid>/tools/sql2es/</guid>
      <description>转换 复制 清空 SQL ElasticSearch DSL function formatJson(msg) { let jsonStr = JSON.stringify(JSON.parse(msg), null, 4) return jsonStr; } document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;sql&#34;, initSelectSql ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;javascript&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function convert() { let schema = input.getValue() if</description>
    </item>
    
    <item>
      <title>在线工具：XML转JSON</title>
      <link>/tools/xml2json/</link>
      <pubDate>Fri, 13 Aug 2021 11:53:56 +0800</pubDate>
      
      <guid>/tools/xml2json/</guid>
      <description>转换 复制 清空 XML JSON function formatJson(msg) { let jsonStr = JSON.stringify(JSON.parse(msg), null, 4) return jsonStr; } document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;xml&#34;, initXml ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;javascript&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function convert() { let schema = input.getValue() if (schema</description>
    </item>
    
    <item>
      <title>在线工具：YAML转Go Struct</title>
      <link>/tools/yaml2go/</link>
      <pubDate>Tue, 10 Aug 2021 10:53:56 +0800</pubDate>
      
      <guid>/tools/yaml2go/</guid>
      <description>转换 复制 清空 YAML GO document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;yaml&#34;, initYaml ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;go&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function convert() { let schema = input.getValue() if (schema != &#34;&#34;) { $.ajax({ url: &#34;/api/tool&#34;, type: &#34;post&#34;, data: { input: schema,</description>
    </item>
    
    <item>
      <title>在线工具：JSON转Golang Struct</title>
      <link>/tools/json2go/</link>
      <pubDate>Tue, 20 Jul 2021 10:53:56 +0800</pubDate>
      
      <guid>/tools/json2go/</guid>
      <description>转换-展开 转换-嵌套 复制 清空 JSON GO Tag： let input = new highlight( document.getElementById(&#34;input&#34;), &#34;javascript&#34;, &#39;{&#34;url&#34;:&#34;https://www.printlove.cn&#34;}&#39; ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;go&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function tagName() { return document.getElementById(&#34;tag&#34;).value } document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert(true, tagName()) } document.getElementById(&#34;btnNest&#34;).onclick =</description>
    </item>
    
    <item>
      <title>在线工具：SQL转entgo schema</title>
      <link>/tools/sql2ent/</link>
      <pubDate>Tue, 20 Jul 2021 10:53:56 +0800</pubDate>
      
      <guid>/tools/sql2ent/</guid>
      <description>转换 复制 清空 SQL entgo schema document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;sql&#34;, initSQl ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;go&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function convert() { let sql = input.getValue() if (sql != &#34;&#34;) { $.ajax({ url: &#34;/api/tool&#34;, type: &#34;post&#34;, data: { input:</description>
    </item>
    
    <item>
      <title>在线工具：SQL转go-zero Model</title>
      <link>/tools/sql2gozero/</link>
      <pubDate>Tue, 20 Jul 2021 10:53:56 +0800</pubDate>
      
      <guid>/tools/sql2gozero/</guid>
      <description>转换 复制 清空 SQL go-zero 启用缓存 document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;sql&#34;, initSQl ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;go&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } let cacheEle = document.getElementById(&#34;cache&#34;) function convert() { let cache = 0 if (cacheEle.checked) { cache = 1</description>
    </item>
    
    <item>
      <title>在线工具：SQL转GORM Model</title>
      <link>/tools/sql2gorm/</link>
      <pubDate>Tue, 20 Jul 2021 10:53:56 +0800</pubDate>
      
      <guid>/tools/sql2gorm/</guid>
      <description>转换 复制 清空 SQL GORM document.getElementById(&#34;btnExpan&#34;).onclick = function() { convert() } let input = new highlight( document.getElementById(&#34;input&#34;), &#34;sql&#34;, initSQl ) let output = new highlight( document.getElementById(&#34;output&#34;), &#34;go&#34;, &#39;等待转化结果...&#39; ) document.getElementById(&#34;btnClear&#34;).onclick = function() { cleanup(input, output) } function convert() { let sql = input.getValue() if (sql != &#34;&#34;) { $.ajax({ url: &#34;/api/tool&#34;, type: &#34;post&#34;, data: { input: sql,</description>
    </item>
    
  </channel>
</rss>
