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