alecthomas / alecthomas/kong

String type support for `filecontent`

Offen
#482 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
3.2k
Forks
188
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
2

Beschreibung

Currently `filecontent` requires a field to be `[]byte`. I would propose that it also allows `string` field in which case file contents is simply converted with `string(...)` in Go. It allows one to signal that the flag expects a textual file as input.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.