Update something

This commit is contained in:
tiff 2024-12-28 20:10:04 -05:00
parent 860d109202
commit 63f9ecda55
2 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,6 @@
pubDatetime: 2024-04-01 pubDatetime: 2024-04-01
title: Go Project Structure for gURL title: Go Project Structure for gURL
description: Helpful Go tip. description: Helpful Go tip.
featured: true
--- ---
Over the past week I've been working on changing the structure of gURL. Over the past week I've been working on changing the structure of gURL.

View File

@ -2,7 +2,6 @@
pubDatetime: 2024-03-24 pubDatetime: 2024-03-24
title: "gURL: A cURL Wrapper Written in Go" title: "gURL: A cURL Wrapper Written in Go"
description: Moving on from frontend to something new. description: Moving on from frontend to something new.
featured: true
--- ---
Briefly: I am writing a CLI tool that fetches info from GitHub's REST API as a wrapper around cURL. Briefly: I am writing a CLI tool that fetches info from GitHub's REST API as a wrapper around cURL.
@ -26,11 +25,11 @@ var defaultBaseURL = "https://github.com/"
// Client is a GitHub scraping client. // Client is a GitHub scraping client.
type Client struct { type Client struct {
*http.Client *http.Client
// base URL for github.com pages. Exposed primarily for testing. Also // base URL for github.com pages. Exposed primarily for testing. Also
// used for saving and restoring cookies on the Client. // used for saving and restoring cookies on the Client.
baseURL *url.URL baseURL *url.URL
} }
``` ```