~zge

https://zge.us.to/

CS student and occasional hobby developer. Various interests.

Sends patches or other feedback to my public inbox.

~zge/public-inbox

Last active a month ago
View more

Recent activity

Re: [PATCH] fix typo for printImage call a month ago

From to ~zge/public-inbox

Thanks, merged it!

-- 
	With kind regards,
	Philip K.

Possible Markdown Bug a month ago

From to ~sircmpwn/sr.ht-discuss

Hi,

I just published a little project I was working on[0], and as I pushed
the first commit and opened the page, I realised that I accidentally
named my README file just "README", instead of "README.md", resulting in
it being displayed as plain text. So I "git mv"'ed the file[1], pushed a
new commit but it seems that nothing changed.

While I didn't get around to look at the source, it *seems* like a
cache-issue, in that it wasn't updated because "git mv" didn't indicate
the a file's contents had changed, so it didn't re-render anything. If
this is the case, it seems like a bit of an annoyance, which either
should be addressed by adding a manual "flush cache" option, or the

[QUESTION lists.sr.ht] Deleting a Mailing List 3 months ago

From to ~sircmpwn/sr.ht-discuss

Hi,

I created a few mailing lists a while back, not really thinking too much
about how persistent they would be, but after having have adopted the
"open-input" model that Drew uses, I think it would be better to delete
the (empty) mailing lists, to avoid confusion.

Now it might be that I just failed to find the option, but I just
couldn't find anything on the topic anywhere. Is this maybe even a
intended non-feature?

-- 
	With kind regards,

Re: [PATCH openring v2] Rewrote flag parsing to use flag-like interface 4 months ago

From to ~sircmpwn/public-inbox

If you think that it would be nicer, codewise, to not use pointers, just
say so and I can fix that. Personally I don't mind so I took the
"smaller" alternative.

-- 
	With kind regards,
	Philip K.

[PATCH openring v2] Rewrote flag parsing to use flag-like interface 4 months ago

From Philip K to ~sircmpwn/public-inbox

---
 openring.go | 85 +++++++++++++++++++++++++----------------------------
 1 file changed, 40 insertions(+), 45 deletions(-)

diff --git a/openring.go b/openring.go
index 8c7ffdb..11950bc 100644
--- a/openring.go
+++ b/openring.go
@@ -8,15 +8,35 @@ import (
 	"net/url"
 	"os"
 	"sort"
-	"strconv"
+	"strings"
[message trimmed]

Re: [PATCH openring v1] Rewrote flag parsing to use flag-like interface 4 months ago

From Philip K. to ~sircmpwn/public-inbox

"Drew DeVault" <sir@cmpwn.com> writes:

> Thanks, but I don't want to break the command line interface. Will pass
> on this patch.

No problem, I kind of expected this response.

On a related note then: Do you think it would be worth trying to extend
getopt's flag interface to support mutli-valued arguments, with
something like

	getopt.Slice(&arg1, &string{"...", ",,,", "'''"}, "...")
    getopt.Slice(&arg2, nil, "...")

[PATCH getopt v3] Implemented flag-like interface 4 months ago

From Philip K to ~sircmpwn/public-inbox

---
 README.md      |  43 ++++++++-
 bool.go        |  43 +++++++++
 commandline.go | 180 +++++++++++++++++++++++++++++++++++
 duration.go    |  39 ++++++++
 flag_test.go   |  74 +++++++++++++++
 flagset.go     | 250 +++++++++++++++++++++++++++++++++++++++++++++++++
 float.go       |  33 +++++++
 int.go         |  61 ++++++++++++
 string.go      |  29 ++++++
 uint.go        |  73 +++++++++++++++
 10 files changed, 821 insertions(+), 4 deletions(-)
 create mode 100644 bool.go
 create mode 100644 commandline.go
[message trimmed]

[PATCH getopt v2] Implemented flag-like interface 4 months ago

From Philip K to ~sircmpwn/public-inbox

---
 README.md    |  33 ++++++++--
 bool.go      |  51 ++++++++++++++++
 duration.go  |  47 ++++++++++++++
 flag.go      | 168 +++++++++++++++++++++++++++++++++++++++++++++++++++
 flag_test.go |  75 +++++++++++++++++++++++
 float.go     |  41 +++++++++++++
 int.go       |  80 ++++++++++++++++++++++++
 string.go    |  37 ++++++++++++
 uint.go      |  80 ++++++++++++++++++++++++
 9 files changed, 608 insertions(+), 4 deletions(-)
 create mode 100644 bool.go
 create mode 100644 duration.go
 create mode 100644 flag.go
[message trimmed]

Re: [PATCH] Change optind to behave like posix getopt 4 months ago

From to ~sircmpwn/public-inbox

I think you forgot the fix the example at the beginning of getopt.go. It
still uses os.Args[1:].

-- 
	With kind regards,
	Philip K.

[PATCH] Implemented flag-like interface 4 months ago

From Philip K to ~sircmpwn/public-inbox

---
 bool.go      |  51 +++++++++++++++++++++
 duration.go  |  47 ++++++++++++++++++++
 flag.go      | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++
 flag_test.go |  75 +++++++++++++++++++++++++++++++
 float.go     |  41 +++++++++++++++++
 int.go       |  80 +++++++++++++++++++++++++++++++++
 string.go    |  37 ++++++++++++++++
 uint.go      |  80 +++++++++++++++++++++++++++++++++
 8 files changed, 533 insertions(+)
 create mode 100644 bool.go
 create mode 100644 duration.go
 create mode 100644 flag.go
 create mode 100644 flag_test.go
[message trimmed]