Examples using... strings.HasPrefix()

Package scanner provides a scanner and tokenizer for UTF-8-encoded text. It takes an io.Reader providing the source, which then can be tokenized through repeated calls to the Scan function. For compatibility with existing tools, the NUL character is not allowed. If the first character in the source ...
HasPrefix tests whether the string s begins with prefix.
FileServer returns a handler that serves HTTP requests with the contents of the file system rooted at root.
NewReader creates a new multipart Reader reading from r using the given MIME boundary.