mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
fixed go formatting
This commit is contained in:
1 parent
348f9b32c5
commit
d4f91dd2b9
3 files changed
+7
-1
No files matched your search
@@ -36,6 +36,7 @@
|
||||
"codemirror-graphql": "^0.6.11",
|
||||
"copy-text-to-clipboard": "^1.0.3",
|
||||
"generate-schema": "^2.5.1",
|
||||
"gofmt.js": "^0.0.2",
|
||||
"is-in-browser": "^1.1.3",
|
||||
"is-svg": "^2.1.0",
|
||||
"js-beautify": "^1.6.14",
|
||||
|
||||
+2
-1
@@ -4,9 +4,10 @@ import Layout from "../components/Layout";
|
||||
import ConversionPanel from "../components/ConversionPanel";
|
||||
import defaultText from "../utils/dummy-json";
|
||||
import json2go from "../utils/json-to-go"
|
||||
import gofmt from "gofmt.js"
|
||||
|
||||
export default class extends PureComponent {
|
||||
getTransformedValue = code => json2go(code).go
|
||||
getTransformedValue = code => gofmt(json2go(code).go)
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
||||
@@ -2602,6 +2602,10 @@ globby@^6.1.0:
|
||||
pify "^2.0.0"
|
||||
pinkie-promise "^2.0.0"
|
||||
|
||||
gofmt.js@^0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/gofmt.js/-/gofmt.js-0.0.2.tgz#94818cea0db4f633589db805d0d7cb1b7ac02df8"
|
||||
|
||||
got@^5.0.0:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/got/-/got-5.7.1.tgz#5f81635a61e4a6589f180569ea4e381680a51f35"
|
||||
|
||||
Reference in new issue
Block a user