Delete unused code, use assert package for tests

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-04 00:42:28 -04:00
parent 8259f16f19
commit 324c398145
4 changed files with 35 additions and 154 deletions
+24
View File
@@ -387,3 +387,27 @@ func addQuery(url string, query url.Values) string {
}
return url + "?" + query.Encode()
}
// String is a helper routine that allocates a new string value
// to store v and returns a pointer to it.
func String(v string) *string {
p := new(string)
*p = v
return p
}
// Int is a helper routine that allocates a new int value
// to store v and returns a pointer to it.
func Int(v int) *int {
p := new(int)
*p = v
return p
}
// Bool is a helper routine that allocates a new bool value
// to store v and returns a pointer to it.
func Bool(v bool) *bool {
p := new(bool)
*p = v
return p
}