diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-19 05:56:02 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-19 05:56:02 -0400 |
commit | ca8eb1d421cbe4dbe6f80312b9cc6e1f9ed4a47c (patch) | |
tree | 102b16f0ec57f81cb39e3a866832757c5aef3eb0 /util.go | |
parent | 258aa565321493fbf6b4325d7b00dbb2058d646a (diff) |
privatize some methods
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,13 +4,13 @@ import ( "net/url" ) -func Assert(cond bool, msg string) { +func assert(cond bool, msg string) { if !cond { panic(msg) } } -func IsRemote(filename string) bool { +func isRemote(filename string) bool { u, err := url.Parse(filename) check(err) return u.IsAbs() |