privatize some methods

This commit is contained in:
Ryan Dahl 2018-05-19 05:56:02 -04:00
parent 258aa56532
commit ca8eb1d421
3 changed files with 6 additions and 6 deletions

View file

@ -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()