oembed/is_valid_url.go
Maxim Lebedev 22aed18257
🚧 Created worked version of the package
Need documenting source code, checks by linters, add CI config
2019-05-23 19:52:58 +05:00

8 lines
126 B
Go

package oembed
import "net/url"
func isValidURL(src string) bool {
_, err := url.ParseRequestURI(src)
return err == nil
}