Skip to content

Commit ec14f1f

Browse files
authored
link to moul/http2curl for the reverse operation (#46)
* link to moul/http2curl for the reverse operation gencurl is unmaintained and curl-to-Go's README already links to http2curl * fix typo * grammar * capitalize menu item
1 parent fca8ad6 commit ec14f1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>curl-to-Go</h1>
2828
<h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a href="https://golang.org/">Go</a> code</h2>
2929

3030
<p>
31-
This tool turns a curl command into Go code. (To do the reverse, check out <a href="https://github.com/sethgrid/gencurl">sethgrid/gencurl</a>.) Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It also understands JSON content types (see <a href="https://mholt.github.io/json-to-go">JSON-to-Go</a>). If the content type is application/x-www-form-urlencoded then it will convert the date to <a href="https://pkg.go.dev/net/url#Values">Values</a>(same as <a href="https://pkg.go.dev/net/http#Client.PostForm">PostForm</a>). Feel free to <a href="https://github.com/mholt/curl-to-go">contribute on GitHub</a>!
31+
This tool turns a curl command into Go code. (To do the reverse, check out <a href="https://github.com/moul/http2curl">moul/http2curl</a>.) Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It also understands JSON content types (see <a href="https://mholt.github.io/json-to-go">JSON-to-Go</a>). If the content type is application/x-www-form-urlencoded then it will convert the data to <a href="https://pkg.go.dev/net/url#Values">Values</a> (same as <a href="https://pkg.go.dev/net/http#Client.PostForm">PostForm</a>). Feel free to <a href="https://github.com/mholt/curl-to-go">contribute on GitHub</a>!
3232
</p>
3333

3434
<p class="examples">
@@ -37,7 +37,7 @@ <h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a hre
3737
<a href="javascript:" id="example3">Example 3</a> &middot;
3838
<a href="javascript:" id="example4">Example 4</a> &middot;
3939
<a href="javascript:" id="example5">Example 5</a> &middot;
40-
<a href="javascript:" id="example6">Example 6</a>
40+
<a href="javascript:" id="example6">Example 6</a>
4141
</p>
4242
</header>
4343

@@ -47,12 +47,12 @@ <h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a hre
4747
</main>
4848

4949
<p>
50-
Note: http.DefaultClient will follow redirects by default, whereas curl does not without the <code>--location</code> flag. Since reusing HTTP client is good Go practice, this tool does not attempt to configure the HTTP client for you.
50+
Note: http.DefaultClient will follow redirects by default, whereas curl does not without the <code>--location</code> flag. Since reusing the HTTP client is good Go practice, this tool does not attempt to configure the HTTP client for you.
5151
</p>
5252

5353

5454
<footer>
55-
&copy; <script>document.write(new Date().getFullYear());</script> Matt Holt - <a href="https://github.com/mholt/curl-to-go">View on GitHub</a> - <a id="dark" href="javascript:">dark mode</a>
55+
&copy; <script>document.write(new Date().getFullYear());</script> Matt Holt - <a href="https://github.com/mholt/curl-to-go">View on GitHub</a> - <a id="dark" href="javascript:">Dark mode</a>
5656
</footer>
5757

5858
</body>

resources/js/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ $(function()
9595
if(!dark)
9696
{
9797
$("head").append("<link rel='stylesheet' href='resources/css/dark.css' id='dark-css'>");
98-
$("#dark").html("light mode");
98+
$("#dark").html("Light mode");
9999
} else
100100
{
101101
$("#dark-css").remove();
102-
$("#dark").html("dark mode");
102+
$("#dark").html("Dark mode");
103103
}
104104
dark = !dark;
105105
});

0 commit comments

Comments
 (0)