Comments (8)
Yes, because I was trying to keep the binary as small as possible and ogier/pflag was smaller and had the features I needed. Just tested it now and it's a two-liner to replace the imports with spf13 but adds 124K to the (minimized) binary. All I want is normal long form options with -- and not -. :)
If that's causing a hassle and there's no way you can just import a package (?) I suppose I could take the 124K hit.
from irtt.
from irtt.
Yes, they're compatible. To be on the safe side replace ogier/pflag with spf13/pflag. For now it's only in irtt_client.go and irtt_server.go, although *.go is probably better in case names change. That would be nice if you could patch it that way.
from irtt.
from irtt.
Ok, so in case this unified diff helps...
% git diff irtt_client.go irtt_server.go
diff --git a/irtt_client.go b/irtt_client.go
index 38f2d21..c8d2cd3 100644
--- a/irtt_client.go
+++ b/irtt_client.go
@@ -14,7 +14,7 @@ import (
"text/tabwriter"
"time"
- flag "github.com/ogier/pflag"
+ flag "github.com/spf13/pflag"
)
func clientUsage() {
diff --git a/irtt_server.go b/irtt_server.go
index 6bdc0da..98ae5e9 100644
--- a/irtt_server.go
+++ b/irtt_server.go
@@ -6,7 +6,7 @@ import (
"strings"
"syscall"
- flag "github.com/ogier/pflag"
+ flag "github.com/spf13/pflag"
)
func serverUsage() {
from irtt.
from irtt.
Finally got around to packaing irtt for Fedora: https://src.fedoraproject.org/rpms/golang-github-heistp-irtt
So closing this issue :)
from irtt.
Great, thanks!
from irtt.
Related Issues (20)
- "ShortReply" error when running on Windows HOT 9
- RTTs can be highly inaccurate on Windows HOT 9
- Getting "undefined" message when installing (Win10) HOT 5
- Thanks for irtt HOT 2
- Client Port
- why send delay is a negative number HOT 1
- use irtt as a library HOT 2
- ios version? HOT 1
- allow IPv6 addresses without brackets
- switch to Lookup* methods for name resolution
- cmsg support HOT 1
- being able to plot cleanly from the command line HOT 1
- Roadmap suggestion: Prometheus integration HOT 3
- Consider switching to crypto/Rand HOT 1
- smokeping probe configuration HOT 1
- SPDX tags in the source files? HOT 2
- Support for continuous use for connection monitoring? HOT 1
- IRTT and Cloudflare tunneling support/setup? HOT 1
- README.md `go get` is deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irtt.