(format string, a ...any)
| 266 | } |
| 267 | |
| 268 | func (r *Reader) promptf(format string, a ...any) error { |
| 269 | if r.promptFunc != nil { |
| 270 | return r.promptFunc(fmt.Sprintf(format, a...)) |
| 271 | } |
| 272 | return nil |
| 273 | } |
| 274 | |
| 275 | // isTrusted checks if a URI's host matches any of the trusted hosts patterns. |
| 276 | func (r *Reader) isTrusted(uri string) bool { |
no outgoing calls
no test coverage detected