mirror of
https://github.com/github/codeql.git
synced 2026-01-31 07:12:57 +01:00
17 lines
264 B
Go
17 lines
264 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func fetch(url string) (string, *RequestError)
|
|
|
|
func niceFetch(url string) {
|
|
var s string
|
|
var e error
|
|
s, e = fetch(url)
|
|
if e != nil {
|
|
fmt.Printf("Unable to fetch URL: %v\n", e)
|
|
} else {
|
|
fmt.Printf("URL contents: %s\n", s)
|
|
}
|
|
}
|