This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search and replace occurences of word: :%s/<word_to_replace>/<correct_word>/g // `g` represents all occurence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
maxSize := int64(1024000) // allow only 1MB of file size | |
err := r.ParseMultipartForm(maxSize) |