mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
privatize some methods
This commit is contained in:
parent
258aa56532
commit
ca8eb1d421
3 changed files with 6 additions and 6 deletions
4
util.go
4
util.go
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue