summaryrefslogtreecommitdiff
path: root/utilities/utilities.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-03-16 21:42:17 -0400
committerWill Hawkins <[email protected]>2022-03-16 21:42:17 -0400
commit0a005d29c22ea9ea00b9c65c0cdfc6a9d5673646 (patch)
tree79d56300222ebbced99c23348d68bce7a84754ec /utilities/utilities.go
parentaac7ecca40b9c5e4ffeedcd38f3c6bb24bd6c3e8 (diff)
Format: Add a line-length formatting.
Diffstat (limited to 'utilities/utilities.go')
-rw-r--r--utilities/utilities.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/utilities/utilities.go b/utilities/utilities.go
index 337aa5e..c74e99b 100644
--- a/utilities/utilities.go
+++ b/utilities/utilities.go
@@ -25,7 +25,8 @@ import (
)
func IsInterfaceNil(ifc interface{}) bool {
- return ifc == nil || (reflect.ValueOf(ifc).Kind() == reflect.Ptr && reflect.ValueOf(ifc).IsNil())
+ return ifc == nil ||
+ (reflect.ValueOf(ifc).Kind() == reflect.Ptr && reflect.ValueOf(ifc).IsNil())
}
func SignedPercentDifference(current float64, previous float64) (difference float64) {
@@ -56,7 +57,12 @@ type GetLatency struct {
Err error
}
-func CalculateSequentialRTTsTime(ctx context.Context, client_a *http.Client, client_b *http.Client, url string) chan GetLatency {
+func CalculateSequentialRTTsTime(
+ ctx context.Context,
+ client_a *http.Client,
+ client_b *http.Client,
+ url string,
+) chan GetLatency {
responseChannel := make(chan GetLatency)
go func() {
before := time.Now()