[{"data":1,"prerenderedAt":1568},["ShallowReactive",2],{"blog-file-upload-golang":3,"blog-all-for-related":1111},{"id":4,"title":5,"author":6,"body":7,"cardAlt":5,"categories":1096,"description":1099,"draft":1100,"extension":1101,"headerImage":1102,"keywords":1103,"meta":1104,"name":1105,"navigation":298,"path":1106,"seo":1107,"series":6,"stem":1108,"updated":6,"year":1109,"__hash__":1110},"blog\u002Fblog\u002Ffile-upload-golang.md","Uploading Files in Golang with Multipart Request",null,{"type":8,"value":9,"toc":1088},"minimark",[10,14,17,20,1084],[11,12,13],"p",{},"We live in the world of images and videos. In every application we have a use case where you want users to upload some images. But, how would you implement this in your applications?",[11,15,16],{},"In this article, I cover how to upload files (can be large as well) from your client to server as a multipart request. In future I'll cover how to further push it to AWS S3 bucket using Golang.",[11,18,19],{},"I will be showcasing how to do this in Golang but the principle would be the same. I'll divide the article into multiple sections - feel free to skip if you already know something. Let's deep dive into the solution!",[21,22,23,28,31,52,65,72,214,217,220,224,227,242,467,479,483,486,627,637,654,661,664,667,1000,1004,1027,1036,1041,1064,1066,1069,1078],"ads",{},[24,25,27],"h2",{"id":26},"introduction-on-multipart-form-data","Introduction on Multipart Form Data",[11,29,30],{},"Whenever a POST request is created, one has to encode the data that forms the body of the request in some way. HTML forms provide three methods of encoding.",[32,33,34,42,47],"ul",{},[35,36,37,41],"li",{},[38,39,40],"code",{},"application\u002Fx-www-form-urlencoded"," (the default)",[35,43,44],{},[38,45,46],{},"multipart\u002Fform-data",[35,48,49],{},[38,50,51],{},"text\u002Fplain",[11,53,54,55,62,63],{},"There is a good ",[56,57,61],"a",{"href":58,"rel":59},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F4526273\u002Fwhat-does-enctype-multipart-form-data-mean",[60],"nofollow","Stackoverflow answer"," explaining this correctly.\nTLDR: When you are dealing with files you should use ",[38,64,46],{},[11,66,67,68,71],{},"On the client side we have to specify this as ",[38,69,70],{},"enctype"," attribute value. For example -",[73,74,79],"pre",{"className":75,"code":76,"language":77,"meta":78,"style":78},"language-html shiki shiki-themes github-light github-dark","\u003Cform action=\"upload-image\" method=\"post\" enctype=\"multipart\u002Fform-data\">\n  \u003Cdiv>\n    \u003Cinput id=\"profilePic\" name=\"profilePic\" type=\"file\" \u002F>\n    \u003Cinput value=\"Upload\" type=\"submit\" \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Fform>\n","html","",[38,80,81,124,135,170,194,204],{"__ignoreMap":78},[82,83,86,90,94,98,101,105,108,110,113,116,118,121],"span",{"class":84,"line":85},"line",1,[82,87,89],{"class":88},"sVt8B","\u003C",[82,91,93],{"class":92},"s9eBZ","form",[82,95,97],{"class":96},"sScJk"," action",[82,99,100],{"class":88},"=",[82,102,104],{"class":103},"sZZnC","\"upload-image\"",[82,106,107],{"class":96}," method",[82,109,100],{"class":88},[82,111,112],{"class":103},"\"post\"",[82,114,115],{"class":96}," enctype",[82,117,100],{"class":88},[82,119,120],{"class":103},"\"multipart\u002Fform-data\"",[82,122,123],{"class":88},">\n",[82,125,127,130,133],{"class":84,"line":126},2,[82,128,129],{"class":88},"  \u003C",[82,131,132],{"class":92},"div",[82,134,123],{"class":88},[82,136,138,141,144,147,149,152,155,157,159,162,164,167],{"class":84,"line":137},3,[82,139,140],{"class":88},"    \u003C",[82,142,143],{"class":92},"input",[82,145,146],{"class":96}," id",[82,148,100],{"class":88},[82,150,151],{"class":103},"\"profilePic\"",[82,153,154],{"class":96}," name",[82,156,100],{"class":88},[82,158,151],{"class":103},[82,160,161],{"class":96}," type",[82,163,100],{"class":88},[82,165,166],{"class":103},"\"file\"",[82,168,169],{"class":88}," \u002F>\n",[82,171,173,175,177,180,182,185,187,189,192],{"class":84,"line":172},4,[82,174,140],{"class":88},[82,176,143],{"class":92},[82,178,179],{"class":96}," value",[82,181,100],{"class":88},[82,183,184],{"class":103},"\"Upload\"",[82,186,161],{"class":96},[82,188,100],{"class":88},[82,190,191],{"class":103},"\"submit\"",[82,193,169],{"class":88},[82,195,197,200,202],{"class":84,"line":196},5,[82,198,199],{"class":88},"  \u003C\u002F",[82,201,132],{"class":92},[82,203,123],{"class":88},[82,205,207,210,212],{"class":84,"line":206},6,[82,208,209],{"class":88},"\u003C\u002F",[82,211,93],{"class":92},[82,213,123],{"class":88},[11,215,216],{},"So multipart request is a REST request that consists of several packed REST requests inside its entity. So, when you upload the image other data like Filename, headers like file type are passed as well.",[218,219],"hr",{},[24,221,223],{"id":222},"parsing-multipart-form-in-golang","Parsing Multipart Form in Golang",[11,225,226],{},"Now that we understand what multipart form data is let's focus on server side to parse this data. I'll cover the client side later in the articles which show how to create requests via Postman.",[11,228,229,230,233,234,237,238,241],{},"The code below contains a ",[38,231,232],{},"HandlePost"," function that parses Multipart Form data using ",[38,235,236],{},"ParseMultipartForm()"," and ",[38,239,240],{},"FormFile()"," methods.",[73,243,247],{"className":244,"code":245,"language":246,"meta":78,"style":78},"language-go shiki shiki-themes github-light github-dark","func HandlePost(w http.ResponseWriter, r *http.Request) {\n\n   \u002F\u002F Parse request body as multipart form data with 32MB max memory\n   err = r.ParseMultipartForm(32 \u003C\u003C 20)\n   if err != nil {\n       logger.Error(err)\n   }\n\n   \u002F\u002F Get file uploaded via Form\n   file, handler, err := r.FormFile(\"file\")\n   if err != nil {\n       logger.Error(err)\n       SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_read_file\")\n       return\n   }\n   defer file.Close()\n}\n","go",[38,248,249,294,300,306,334,351,362,368,373,379,399,412,421,435,441,446,461],{"__ignoreMap":78},[82,250,251,255,258,261,265,268,271,274,277,280,283,286,288,291],{"class":84,"line":85},[82,252,254],{"class":253},"szBVR","func",[82,256,257],{"class":96}," HandlePost",[82,259,260],{"class":88},"(",[82,262,264],{"class":263},"s4XuR","w",[82,266,267],{"class":96}," http",[82,269,270],{"class":88},".",[82,272,273],{"class":96},"ResponseWriter",[82,275,276],{"class":88},", ",[82,278,279],{"class":263},"r",[82,281,282],{"class":253}," *",[82,284,285],{"class":96},"http",[82,287,270],{"class":88},[82,289,290],{"class":96},"Request",[82,292,293],{"class":88},") {\n",[82,295,296],{"class":84,"line":126},[82,297,299],{"emptyLinePlaceholder":298},true,"\n",[82,301,302],{"class":84,"line":137},[82,303,305],{"class":304},"sJ8bj","   \u002F\u002F Parse request body as multipart form data with 32MB max memory\n",[82,307,308,311,313,316,319,321,325,328,331],{"class":84,"line":172},[82,309,310],{"class":88},"   err ",[82,312,100],{"class":253},[82,314,315],{"class":88}," r.",[82,317,318],{"class":96},"ParseMultipartForm",[82,320,260],{"class":88},[82,322,324],{"class":323},"sj4cs","32",[82,326,327],{"class":253}," \u003C\u003C",[82,329,330],{"class":323}," 20",[82,332,333],{"class":88},")\n",[82,335,336,339,342,345,348],{"class":84,"line":196},[82,337,338],{"class":253},"   if",[82,340,341],{"class":88}," err ",[82,343,344],{"class":253},"!=",[82,346,347],{"class":323}," nil",[82,349,350],{"class":88}," {\n",[82,352,353,356,359],{"class":84,"line":206},[82,354,355],{"class":88},"       logger.",[82,357,358],{"class":96},"Error",[82,360,361],{"class":88},"(err)\n",[82,363,365],{"class":84,"line":364},7,[82,366,367],{"class":88},"   }\n",[82,369,371],{"class":84,"line":370},8,[82,372,299],{"emptyLinePlaceholder":298},[82,374,376],{"class":84,"line":375},9,[82,377,378],{"class":304},"   \u002F\u002F Get file uploaded via Form\n",[82,380,382,385,388,390,393,395,397],{"class":84,"line":381},10,[82,383,384],{"class":88},"   file, handler, err ",[82,386,387],{"class":253},":=",[82,389,315],{"class":88},[82,391,392],{"class":96},"FormFile",[82,394,260],{"class":88},[82,396,166],{"class":103},[82,398,333],{"class":88},[82,400,402,404,406,408,410],{"class":84,"line":401},11,[82,403,338],{"class":253},[82,405,341],{"class":88},[82,407,344],{"class":253},[82,409,347],{"class":323},[82,411,350],{"class":88},[82,413,415,417,419],{"class":84,"line":414},12,[82,416,355],{"class":88},[82,418,358],{"class":96},[82,420,361],{"class":88},[82,422,424,427,430,433],{"class":84,"line":423},13,[82,425,426],{"class":96},"       SendErrorResponse",[82,428,429],{"class":88},"(w, http.StatusInternalServerError, ",[82,431,432],{"class":103},"\".errors.upload_image.cannot_read_file\"",[82,434,333],{"class":88},[82,436,438],{"class":84,"line":437},14,[82,439,440],{"class":253},"       return\n",[82,442,444],{"class":84,"line":443},15,[82,445,367],{"class":88},[82,447,449,452,455,458],{"class":84,"line":448},16,[82,450,451],{"class":253},"   defer",[82,453,454],{"class":88}," file.",[82,456,457],{"class":96},"Close",[82,459,460],{"class":88},"()\n",[82,462,464],{"class":84,"line":463},17,[82,465,466],{"class":88},"}\n",[32,468,469,474],{},[35,470,471,473],{},[38,472,236],{}," - This is required for uploading files to server memory. We define maximum memory as 32MB. Anything greater than that will be stored in a temporary file on the system.",[35,475,476,478],{},[38,477,240],{}," - This is used to get the File Metadata like Headers, file size etc. This method returns the first file for the provided form key which we can use to save file locally on server.",[24,480,482],{"id":481},"storing-the-uploaded-file-on-server","Storing the uploaded file on Server",[11,484,485],{},"Ok, you must be thinking. I got the file data but I still don't see the file I uploaded on the server. Let's do that before we move forward to uploading it on S3.",[73,487,489],{"className":244,"code":488,"language":246,"meta":78,"style":78},"\u002F\u002F Create file locally\nlocalFile, err := os.Create(handler.Filename)\nif err != nil {\n   logger.Error(err)\n   SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_create_local_file\")\n   return\n}\ndefer dst.Close()\n\n\u002F\u002F Copy the uploaded file data to the newly created file on the filesystem\nif _, err := io.Copy(localFile, file); err != nil {\n   logger.Error(err)\n   SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_copy_to_file\")\n   return\n}\n",[38,490,491,496,512,525,534,546,551,555,567,571,576,600,608,619,623],{"__ignoreMap":78},[82,492,493],{"class":84,"line":85},[82,494,495],{"class":304},"\u002F\u002F Create file locally\n",[82,497,498,501,503,506,509],{"class":84,"line":126},[82,499,500],{"class":88},"localFile, err ",[82,502,387],{"class":253},[82,504,505],{"class":88}," os.",[82,507,508],{"class":96},"Create",[82,510,511],{"class":88},"(handler.Filename)\n",[82,513,514,517,519,521,523],{"class":84,"line":137},[82,515,516],{"class":253},"if",[82,518,341],{"class":88},[82,520,344],{"class":253},[82,522,347],{"class":323},[82,524,350],{"class":88},[82,526,527,530,532],{"class":84,"line":172},[82,528,529],{"class":88},"   logger.",[82,531,358],{"class":96},[82,533,361],{"class":88},[82,535,536,539,541,544],{"class":84,"line":196},[82,537,538],{"class":96},"   SendErrorResponse",[82,540,429],{"class":88},[82,542,543],{"class":103},"\".errors.upload_image.cannot_create_local_file\"",[82,545,333],{"class":88},[82,547,548],{"class":84,"line":206},[82,549,550],{"class":253},"   return\n",[82,552,553],{"class":84,"line":364},[82,554,466],{"class":88},[82,556,557,560,563,565],{"class":84,"line":370},[82,558,559],{"class":253},"defer",[82,561,562],{"class":88}," dst.",[82,564,457],{"class":96},[82,566,460],{"class":88},[82,568,569],{"class":84,"line":375},[82,570,299],{"emptyLinePlaceholder":298},[82,572,573],{"class":84,"line":381},[82,574,575],{"class":304},"\u002F\u002F Copy the uploaded file data to the newly created file on the filesystem\n",[82,577,578,580,583,585,588,591,594,596,598],{"class":84,"line":401},[82,579,516],{"class":253},[82,581,582],{"class":88}," _, err ",[82,584,387],{"class":253},[82,586,587],{"class":88}," io.",[82,589,590],{"class":96},"Copy",[82,592,593],{"class":88},"(localFile, file); err ",[82,595,344],{"class":253},[82,597,347],{"class":323},[82,599,350],{"class":88},[82,601,602,604,606],{"class":84,"line":414},[82,603,529],{"class":88},[82,605,358],{"class":96},[82,607,361],{"class":88},[82,609,610,612,614,617],{"class":84,"line":423},[82,611,538],{"class":96},[82,613,429],{"class":88},[82,615,616],{"class":103},"\".errors.upload_image.cannot_copy_to_file\"",[82,618,333],{"class":88},[82,620,621],{"class":84,"line":437},[82,622,550],{"class":253},[82,624,625],{"class":84,"line":443},[82,626,466],{"class":88},[11,628,629,630,633,634,270],{},"The code is pretty straightforward. We create a new file using ",[38,631,632],{},"os.Create()"," and then copy the content of the uploaded file to this new file using ",[38,635,636],{},"io.Copy()",[11,638,639,640,643,644,646,647,650,651],{},"To verify this is working. You need to create a POST request via client (say Postman) and set ",[38,641,642],{},"Content-Type"," Header as ",[38,645,46],{}," , finally upload image in ",[38,648,649],{},"body"," as ",[38,652,653],{},"form-data",[11,655,656],{},[657,658],"img",{"alt":659,"src":660},"Postman Multipart Request","https:\u002F\u002Fwww.mohitkhare.com\u002Fimages\u002Fblog\u002Ffile-upload-golang\u002Fpostman-multipart-request.png",[11,662,663],{},"Awesome, now you should see a new file created in your root folder of source code. Tada!",[11,665,666],{},"Here's the complete POST handler function.",[73,668,670],{"className":244,"code":669,"language":246,"meta":78,"style":78},"func (client *ImageUploadAPIClient) HandlePost(w http.ResponseWriter, r *http.Request) {\n\n   \u002F\u002F Parse request body as multipart form data with 32MB max memory\n   err = r.ParseMultipartForm(32 \u003C\u003C 20)\n   if err != nil {\n       logger.Error(err)\n   }\n\n   \u002F\u002F Get file from Form\n   file, handler, err := r.FormFile(\"file\")\n   if err != nil {\n       logger.Error(err)\n       SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_read_file\")\n       return\n   }\n   defer file.Close()\n\n   \u002F\u002F Create file locally\n   dst, err := os.Create(handler.Filename)\n   if err != nil {\n       logger.Error(err)\n       SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_create_local_file\")\n       return\n   }\n   defer dst.Close()\n\n   \u002F\u002F Copy the uploaded file data to the newly created file on the filesystem\n   if _, err := io.Copy(dst, file); err != nil {\n       logger.Error(err)\n       SendErrorResponse(w, http.StatusInternalServerError, \".errors.upload_image.cannot_copy_to_file\")\n       return\n   }\n   w.WriteHeader(http.StatusOK)\n}\n",[38,671,672,717,721,725,745,757,765,769,773,778,794,806,814,824,828,832,842,846,852,866,879,888,899,904,909,920,925,931,953,962,973,978,983,995],{"__ignoreMap":78},[82,673,674,676,679,682,685,688,691,693,695,697,699,701,703,705,707,709,711,713,715],{"class":84,"line":85},[82,675,254],{"class":253},[82,677,678],{"class":88}," (",[82,680,681],{"class":263},"client ",[82,683,684],{"class":253},"*",[82,686,687],{"class":96},"ImageUploadAPIClient",[82,689,690],{"class":88},") ",[82,692,232],{"class":96},[82,694,260],{"class":88},[82,696,264],{"class":263},[82,698,267],{"class":96},[82,700,270],{"class":88},[82,702,273],{"class":96},[82,704,276],{"class":88},[82,706,279],{"class":263},[82,708,282],{"class":253},[82,710,285],{"class":96},[82,712,270],{"class":88},[82,714,290],{"class":96},[82,716,293],{"class":88},[82,718,719],{"class":84,"line":126},[82,720,299],{"emptyLinePlaceholder":298},[82,722,723],{"class":84,"line":137},[82,724,305],{"class":304},[82,726,727,729,731,733,735,737,739,741,743],{"class":84,"line":172},[82,728,310],{"class":88},[82,730,100],{"class":253},[82,732,315],{"class":88},[82,734,318],{"class":96},[82,736,260],{"class":88},[82,738,324],{"class":323},[82,740,327],{"class":253},[82,742,330],{"class":323},[82,744,333],{"class":88},[82,746,747,749,751,753,755],{"class":84,"line":196},[82,748,338],{"class":253},[82,750,341],{"class":88},[82,752,344],{"class":253},[82,754,347],{"class":323},[82,756,350],{"class":88},[82,758,759,761,763],{"class":84,"line":206},[82,760,355],{"class":88},[82,762,358],{"class":96},[82,764,361],{"class":88},[82,766,767],{"class":84,"line":364},[82,768,367],{"class":88},[82,770,771],{"class":84,"line":370},[82,772,299],{"emptyLinePlaceholder":298},[82,774,775],{"class":84,"line":375},[82,776,777],{"class":304},"   \u002F\u002F Get file from Form\n",[82,779,780,782,784,786,788,790,792],{"class":84,"line":381},[82,781,384],{"class":88},[82,783,387],{"class":253},[82,785,315],{"class":88},[82,787,392],{"class":96},[82,789,260],{"class":88},[82,791,166],{"class":103},[82,793,333],{"class":88},[82,795,796,798,800,802,804],{"class":84,"line":401},[82,797,338],{"class":253},[82,799,341],{"class":88},[82,801,344],{"class":253},[82,803,347],{"class":323},[82,805,350],{"class":88},[82,807,808,810,812],{"class":84,"line":414},[82,809,355],{"class":88},[82,811,358],{"class":96},[82,813,361],{"class":88},[82,815,816,818,820,822],{"class":84,"line":423},[82,817,426],{"class":96},[82,819,429],{"class":88},[82,821,432],{"class":103},[82,823,333],{"class":88},[82,825,826],{"class":84,"line":437},[82,827,440],{"class":253},[82,829,830],{"class":84,"line":443},[82,831,367],{"class":88},[82,833,834,836,838,840],{"class":84,"line":448},[82,835,451],{"class":253},[82,837,454],{"class":88},[82,839,457],{"class":96},[82,841,460],{"class":88},[82,843,844],{"class":84,"line":463},[82,845,299],{"emptyLinePlaceholder":298},[82,847,849],{"class":84,"line":848},18,[82,850,851],{"class":304},"   \u002F\u002F Create file locally\n",[82,853,855,858,860,862,864],{"class":84,"line":854},19,[82,856,857],{"class":88},"   dst, err ",[82,859,387],{"class":253},[82,861,505],{"class":88},[82,863,508],{"class":96},[82,865,511],{"class":88},[82,867,869,871,873,875,877],{"class":84,"line":868},20,[82,870,338],{"class":253},[82,872,341],{"class":88},[82,874,344],{"class":253},[82,876,347],{"class":323},[82,878,350],{"class":88},[82,880,882,884,886],{"class":84,"line":881},21,[82,883,355],{"class":88},[82,885,358],{"class":96},[82,887,361],{"class":88},[82,889,891,893,895,897],{"class":84,"line":890},22,[82,892,426],{"class":96},[82,894,429],{"class":88},[82,896,543],{"class":103},[82,898,333],{"class":88},[82,900,902],{"class":84,"line":901},23,[82,903,440],{"class":253},[82,905,907],{"class":84,"line":906},24,[82,908,367],{"class":88},[82,910,912,914,916,918],{"class":84,"line":911},25,[82,913,451],{"class":253},[82,915,562],{"class":88},[82,917,457],{"class":96},[82,919,460],{"class":88},[82,921,923],{"class":84,"line":922},26,[82,924,299],{"emptyLinePlaceholder":298},[82,926,928],{"class":84,"line":927},27,[82,929,930],{"class":304},"   \u002F\u002F Copy the uploaded file data to the newly created file on the filesystem\n",[82,932,934,936,938,940,942,944,947,949,951],{"class":84,"line":933},28,[82,935,338],{"class":253},[82,937,582],{"class":88},[82,939,387],{"class":253},[82,941,587],{"class":88},[82,943,590],{"class":96},[82,945,946],{"class":88},"(dst, file); err ",[82,948,344],{"class":253},[82,950,347],{"class":323},[82,952,350],{"class":88},[82,954,956,958,960],{"class":84,"line":955},29,[82,957,355],{"class":88},[82,959,358],{"class":96},[82,961,361],{"class":88},[82,963,965,967,969,971],{"class":84,"line":964},30,[82,966,426],{"class":96},[82,968,429],{"class":88},[82,970,616],{"class":103},[82,972,333],{"class":88},[82,974,976],{"class":84,"line":975},31,[82,977,440],{"class":253},[82,979,981],{"class":84,"line":980},32,[82,982,367],{"class":88},[82,984,986,989,992],{"class":84,"line":985},33,[82,987,988],{"class":88},"   w.",[82,990,991],{"class":96},"WriteHeader",[82,993,994],{"class":88},"(http.StatusOK)\n",[82,996,998],{"class":84,"line":997},34,[82,999,466],{"class":88},[24,1001,1003],{"id":1002},"resources","Resources",[32,1005,1006,1013,1020],{},[35,1007,1008],{},[56,1009,1012],{"href":1010,"rel":1011},"https:\u002F\u002Fwww.w3.org\u002FTR\u002Fhtml5\u002Fsec-forms.html#multipart-form-data",[60],"Multipart W3 Reference",[35,1014,1015],{},[56,1016,1019],{"href":1017,"rel":1018},"https:\u002F\u002Fastaxie.gitbooks.io\u002Fbuild-web-application-with-golang\u002Fcontent\u002Fen\u002F04.5.html",[60],"File upload in web apps",[35,1021,1022],{},[56,1023,1026],{"href":1024,"rel":1025},"https:\u002F\u002Fayada.dev\u002Fposts\u002Fmultipart-requests-in-go\u002F",[60],"Multipart request in Go",[11,1028,1029,1030,1035],{},"Liked the article? Consider ",[56,1031,1034],{"href":1032,"rel":1033},"https:\u002F\u002Fwww.buymeacoffee.com\u002FchHAzigTb",[60],"supporting me"," ☕️",[1037,1038,1040],"h3",{"id":1039},"books-to-learn-golang","Books to learn Golang",[32,1042,1043,1050,1057],{},[35,1044,1045],{},[56,1046,1049],{"href":1047,"rel":1048},"https:\u002F\u002Famzn.to\u002F3fYLCqz",[60],"Go Programming Language",[35,1051,1052],{},[56,1053,1056],{"href":1054,"rel":1055},"https:\u002F\u002Famzn.to\u002F3s7fWS3",[60],"Learning Go",[35,1058,1059],{},[56,1060,1063],{"href":1061,"rel":1062},"https:\u002F\u002Famzn.to\u002F3t6PM37",[60],"Go in Action",[218,1065],{},[11,1067,1068],{},"I hope you learned something new. Feel free to suggest improvements ✔️",[11,1070,1071,1072,1077],{},"I share regular updates and resources on ",[56,1073,1076],{"href":1074,"rel":1075},"https:\u002F\u002Ftwitter.com\u002Fmkfeuhrer",[60],"Twitter",". Let's connect!",[11,1079,1080],{},[1081,1082,1083],"strong",{},"Keep exploring 🔎 Keep learning 🚀",[1085,1086,1087],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":78,"searchDepth":126,"depth":126,"links":1089},[1090,1091,1092,1093],{"id":26,"depth":126,"text":27},{"id":222,"depth":126,"text":223},{"id":481,"depth":126,"text":482},{"id":1002,"depth":126,"text":1003,"children":1094},[1095],{"id":1039,"depth":137,"text":1040},[1097,1098],"Golang","Programming","Learn how to upload files from your client to server as a multipart request in Golang.",false,"md","blog\u002Ffile-upload-golang\u002Ffile-upload-golang-card.webp","file upload golang, multipart request golang, upload images golang",{},"file-upload-golang","\u002Fblog\u002Ffile-upload-golang",{"title":5,"description":1099},"blog\u002Ffile-upload-golang","2021-03-13","RAa-Xhya-YQBOmvDo_8-FadMpUIa73zf2T2q-hcUmrs",[1112,1119,1125,1133,1142,1149,1156,1163,1169,1175,1181,1187,1193,1195,1202,1208,1214,1220,1226,1232,1238,1244,1250,1257,1264,1270,1276,1282,1288,1294,1300,1306,1312,1318,1324,1330,1336,1342,1349,1355,1361,1367,1374,1380,1386,1393,1400,1406,1413,1419,1426,1432,1439,1445,1451,1457,1463,1469,1475,1481,1487,1493,1499,1505,1511,1518,1524,1531,1537,1543,1549,1556,1562],{"path":1113,"title":1114,"description":1115,"categories":1116,"draft":298,"year":1118,"series":6},"\u002Fblog\u002Fai-assisted-workstation","Building an AI-Assisted Personal Workstation","A living log of building a practical AI-assisted workstation for software and startup work.",[1117,1098],"Productivity","2026-08-08",{"path":1120,"title":1121,"description":1122,"categories":1123,"draft":1100,"year":1124,"series":6},"\u002Fblog\u002Faws-s3-golang","Uploading images to AWS S3 in Golang","In this tutorial I cover how to upload, fetch and manage other operations for objects on AWS S3 in Golang",[1097,1098],"2020-01-12",{"path":1126,"title":1127,"description":1128,"categories":1129,"draft":1100,"year":1132,"series":6},"\u002Fblog\u002Fbooks-for-engineers","Best Books for Software Engineers","Best Books to help you build you software engineering career - ranging from fundamentats, interview prep to productivity.",[1130,1131],"Books","Life","2021-12-26",{"path":1134,"title":1135,"description":1136,"categories":1137,"draft":1100,"year":1141,"series":6},"\u002Fblog\u002Fbuilding-acrons","Building Acrons 🚀","Building Acrons, a one-stop tool to decode everyday acronyms like DIY, FOMO, and BRB without losing your flow.",[1138,1139,1140],"Side Projects","Web","Tools","2020-05-26",{"path":1143,"title":1144,"description":1145,"categories":1146,"draft":1100,"year":1148,"series":6},"\u002Fblog\u002Fcap-theorem","CAP Theorem Explained","Learn the concept and misconceptions around popular CAP theorem in system design.",[1147,1098],"System Design","2021-07-26",{"path":1150,"title":1151,"description":1152,"categories":1153,"draft":1100,"year":1155,"series":6},"\u002Fblog\u002Fcode-reviews","Code Review Checklist","Why code reviews matter, and best practices that catch bugs early and keep code quality high before merge.",[1154],"Engineering Principles","2020-07-20",{"path":1157,"title":1158,"description":1159,"categories":1160,"draft":1100,"year":1162,"series":6},"\u002Fblog\u002Fdark-mode","Add Dark mode to websites","Dark mode is ❤️️ Add it to your websites with little CSS and JS",[1161,1139],"Javascript","2020-07-04",{"path":1164,"title":1165,"description":1166,"categories":1167,"draft":1100,"year":1168,"series":6},"\u002Fblog\u002Fdate-time-golang","Working with Date and Time in Go","Learn how to use time in Golang - Multiple formats, locations and using date.",[1097,1098],"2020-10-09",{"path":1170,"title":1171,"description":1172,"categories":1173,"draft":1100,"year":1174,"series":6},"\u002Fblog\u002Fdefer-in-golang","Understanding Defer In Golang","Learn about defer keyword in golang and how it can help you avoid panics due to bugs.",[1097,1098],"2021-05-05",{"path":1176,"title":1177,"description":1178,"categories":1179,"draft":1100,"year":1180,"series":6},"\u002Fblog\u002Fenums-golang","Implementing Enums in Golang","Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.",[1097,1098],"2021-12-18",{"path":1182,"title":1183,"description":1184,"categories":1185,"draft":1100,"year":1186,"series":6},"\u002Fblog\u002Fenvironment-variable-golang","Guide to Environment variables in Go","Learn what are environment variables and how to use them in Go",[1097,1098],"2020-08-14",{"path":1188,"title":1189,"description":1190,"categories":1191,"draft":1100,"year":1192,"series":6},"\u002Fblog\u002Ferror-handling-golang","Handle errors the right way — Golang","How to handle errors in golang to make your life easy",[1097,1098],"2020-01-30",{"path":1106,"title":5,"description":1099,"categories":1194,"draft":1100,"year":1109,"series":6},[1097,1098],{"path":1196,"title":1197,"description":1198,"categories":1199,"draft":1100,"year":1201,"series":6},"\u002Fblog\u002Fgit-branch","Git Branch 101","Branching is a new path of development that makes it a lot easier to build features. Learn why and how to use branching in git.",[1200,1098],"Git","2022-03-20",{"path":1203,"title":1204,"description":1205,"categories":1206,"draft":1100,"year":1207,"series":6},"\u002Fblog\u002Fgit-pull-request-template","Guide to Pull Request Templates","Improve collaboration and code reviews with pull request templates. Blog include PR template and how to create one on github\u002Fgitlab",[1200,1098],"2023-08-24",{"path":1209,"title":1210,"description":1211,"categories":1212,"draft":1100,"year":1213,"series":6},"\u002Fblog\u002Fgit-remove-sensitive-info","Securing Git: Remove Sensitive Information","Protect your code from security breaches by using BFG tool to remove sensitive information from Git history. Learn how to do it in this comprehensive guide.",[1200,1098],"2023-10-16",{"path":1215,"title":1216,"description":1217,"categories":1218,"draft":1100,"year":1219,"series":6},"\u002Fblog\u002Fgit-tags-explained","Git tags : Explained","What Git tags are, why and when to use them, and how to start tagging releases in your own projects.",[1200,1098],"2020-06-18",{"path":1221,"title":1222,"description":1223,"categories":1224,"draft":1100,"year":1225,"series":6},"\u002Fblog\u002Fgo-dependency-injection","Dependency Injection in Go using Wire","Learn about dependency injection, its benefits and how to implement it in Go services using wire",[1097,1098],"2022-11-26",{"path":1227,"title":1228,"description":1229,"categories":1230,"draft":1100,"year":1231,"series":6},"\u002Fblog\u002Fgo-generics","Introduction to Generics in Go","Learn about generics in Golang, it's benefits and how to implement it in applications.",[1097,1098],"2022-11-27",{"path":1233,"title":1234,"description":1235,"categories":1236,"draft":1100,"year":1237,"series":6},"\u002Fblog\u002Fgo-in-memory-cache","Building In-Memory Cache in Go","Learn about in-memory caching in Golang, it's benefits and how to implement it with and without generics with a TTL(expiry).",[1097,1098],"2024-03-28",{"path":1239,"title":1240,"description":1241,"categories":1242,"draft":1100,"year":1243,"series":6},"\u002Fblog\u002Fgo-makefile","Ultimate Makefile for Golang","Boost your productivity and save time with ultimate Makefile for Golang projects.",[1097,1098],"2024-06-10",{"path":1245,"title":1246,"description":1247,"categories":1248,"draft":1100,"year":1249,"series":6},"\u002Fblog\u002Fgo-middleware","Mastering Middlewares in Golang","Learn about middlewares, their use cases and how to implement them in Golang applications",[1097,1098],"2022-03-13",{"path":1251,"title":1252,"description":1253,"categories":1254,"draft":1100,"year":1256,"series":6},"\u002Fblog\u002Fgo-naming-conventions","Naming Conventions in Golang","Why naming conventions matter in Go, with best practices and practical examples for clear, readable, maintainable code.",[1097,1098,1255],"Code Quality","2023-05-19",{"path":1258,"title":1259,"description":1260,"categories":1261,"draft":1100,"year":1263,"series":6},"\u002Fblog\u002Fgo-with-redis","Go with Redis","A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.",[1097,1262,1098],"Database","2020-05-03",{"path":1265,"title":1266,"description":1267,"categories":1268,"draft":1100,"year":1269,"series":6},"\u002Fblog\u002Fgolang-maps","Learn Maps in Golang (with examples)","A complete guide to maps in Golang: creating maps, adding and removing items, iterating, and how map equality works.",[1097,1098],"2020-09-10",{"path":1271,"title":1272,"description":1273,"categories":1274,"draft":1100,"year":1275,"series":6},"\u002Fblog\u002Fguide-to-cdn","Guide to Content Delivery Network","CDN is one of the backbone of modern world internet infrastructure. Learn about Content Delivery Network, it's working, types and benefits.",[1147,1098],"2022-01-23",{"path":1277,"title":1278,"description":1279,"categories":1280,"draft":1100,"year":1281,"series":6},"\u002Fblog\u002Fguide-to-rule-engines","Guide to Rule Engines","Rule Engines help in solving changing business requirements with ease. Learn all about Rule engines, it's working, benefits and how to implement one in Golang",[1097,1098],"2022-09-12",{"path":1283,"title":1284,"description":1285,"categories":1286,"draft":1100,"year":1287,"series":6},"\u002Fblog\u002Fhexagonal-architecture","Guide to Hexagonal Architecture","Learn how to design efficient application with hexagonal architecture with practical example",[1147,1098],"2020-12-13",{"path":1289,"title":1290,"description":1291,"categories":1292,"draft":1100,"year":1293,"series":6},"\u002Fblog\u002Fhttp-status-codes","Learn HTTP Status Codes","A tour of HTTP response status codes, what each class means, and when to use which code in your applications.",[1139,1098],"2020-07-30",{"path":1295,"title":1296,"description":1297,"categories":1298,"draft":1100,"year":1299,"series":6},"\u002Fblog\u002Fintroduction-to-goroutines","Introduction to Goroutines","Understand the basics of concurrency and learn how to work with Goroutines in golang.",[1097,1098],"2021-04-10",{"path":1301,"title":1302,"description":1303,"categories":1304,"draft":1100,"year":1305,"series":6},"\u002Fblog\u002Fjson-in-postgres-with-golang","Storing JSON in Postgres with Golang","Learn how to store JSON objects in Postgres and how to implement it in Golang.",[1098,1262,1097],"2021-02-13",{"path":1307,"title":1308,"description":1309,"categories":1310,"draft":1100,"year":1311,"series":6},"\u002Fblog\u002Fjson-web-token","Complete Guide to JWT","JSON Web Tokens are a very compact way to carry information. Learn about JWTs in depth, from its structure to when to use it.",[1098,1139],"2021-11-20",{"path":1313,"title":1314,"description":1315,"categories":1316,"draft":1100,"year":1317,"series":6},"\u002Fblog\u002Flearn-to-say-no","Learning to say No","Learn why it's important to say 'NO'. How it helps in increasing productivity and explore strategies for saying No",[1131,1130],"2022-04-09",{"path":1319,"title":1320,"description":1321,"categories":1322,"draft":1100,"year":1323,"series":6},"\u002Fblog\u002Flearn-unlearn-relearn","Learn - Unlearn - Relearn","Unlearning things to learn new is the way to grow. Discover how to do that!",[1117,1131],"2020-09-25",{"path":1325,"title":1326,"description":1327,"categories":1328,"draft":1100,"year":1329,"series":6},"\u002Fblog\u002Flinting-in-golang","Introduction to Linting in Go","Introduction to improving code quality using linting. Learn how to add linting in your Go projects.",[1097,1098],"2021-07-07",{"path":1331,"title":1332,"description":1333,"categories":1334,"draft":1100,"year":1335,"series":6},"\u002Fblog\u002Fload-balancing","Load Balancing 101","Complete guide on load balancers explaining the internal working and how does it help in making applications efficient.",[1147,1098],"2021-05-29",{"path":1337,"title":1338,"description":1339,"categories":1340,"draft":1100,"year":1341,"series":6},"\u002Fblog\u002Fmaking-decisions-the-right-way","Making Decisions: The right way","Decisions are hard! Learn how to make the right decisions always",[1117,1131],"2020-06-07",{"path":1343,"title":1344,"description":1345,"categories":1346,"draft":1100,"year":1348,"series":6},"\u002Fblog\u002Fmanage-logs-with-logrotate","Using Logrotate to manage logs","Learn how to use logrotate system utility to manage logs with example",[1347,1098],"Linux","2020-09-08",{"path":1350,"title":1351,"description":1352,"categories":1353,"draft":1100,"year":1354,"series":6},"\u002Fblog\u002Fmarshal-structs-golang","Marshal structs the right way: Golang","Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.",[1097,1098],"2020-03-31",{"path":1356,"title":1357,"description":1358,"categories":1359,"draft":1100,"year":1360,"series":6},"\u002Fblog\u002Fnotes-almanack-naval","Book Notes : Almanack of Naval Ravikant","My notes\u002Fhighlights from Almanack of Naval Ravikant book by Eric Jorgenson",[1130,1131],"2020-10-17",{"path":1362,"title":1363,"description":1364,"categories":1365,"draft":1100,"year":1366,"series":6},"\u002Fblog\u002Fnotes-anything-you-want","Book Notes : Anything you want","My notes\u002Fhighlights from Anything you want book by Derek Sivers",[1130,1131],"2021-09-25",{"path":1368,"title":1369,"description":1370,"categories":1371,"draft":1100,"year":1373,"series":6},"\u002Fblog\u002Fnotes-getting-real","Book Notes : Getting Real","My notes and highlights from Getting Real by Jason Fried and David Heinemeier Hansson on building web applications.",[1130,1372],"Startups","2020-11-03",{"path":1375,"title":1376,"description":1377,"categories":1378,"draft":1100,"year":1379,"series":6},"\u002Fblog\u002Fnotes-hell-yeah-or-no","Book Notes : Hell Yeah or No","My notes\u002Fhighlights from Hell Yeah or No book by Derek Sivers",[1130,1131],"2020-09-16",{"path":1381,"title":1382,"description":1383,"categories":1384,"draft":1100,"year":1385,"series":6},"\u002Fblog\u002Fnotes-how-to-be-a-capitalist","Book Notes : How to Be a Capitalist Without Any Capital","My notes\u002Fhighlights from How to Be a Capitalist Without Any Capital by Nathan Latka",[1130,1372],"2020-01-07",{"path":1387,"title":1388,"description":1389,"categories":1390,"draft":1100,"year":1392,"series":6},"\u002Fblog\u002Fnotes-lean-b2b","Book Notes : Lean B2B","My notes and highlights from Lean B2B by Étienne Garbugli on assessing markets, building MVPs, and selling to businesses.",[1130,1391],"Entrepreneurship","2022-07-02",{"path":1394,"title":1395,"description":1396,"categories":1397,"draft":1100,"year":1399,"series":6},"\u002Fblog\u002Fnotes-lets-talk-money","Book Notes : Let's Talk Money","My notes and highlights from Let's Talk Money by Monica Halan on managing personal finances and savings.",[1130,1398],"Personal Finance","2021-02-26",{"path":1401,"title":1402,"description":1403,"categories":1404,"draft":1100,"year":1405,"series":6},"\u002Fblog\u002Fnotes-obviously-awesome","Book Notes : Obviously Awesome","My notes and highlights from Obviously Awesome by April Dunford on product positioning and marketing strategy.",[1130,1372],"2020-04-26",{"path":1407,"title":1408,"description":1409,"categories":1410,"draft":1100,"year":1412,"series":6},"\u002Fblog\u002Fnotes-refactoring-ui","Book Notes: Refactoring UI","My notes and highlights from Refactoring UI by Adam Wathan and Steve Schoger, full of practical design tips for engineers.",[1130,1411],"Design","2020-05-09",{"path":1414,"title":1415,"description":1416,"categories":1417,"draft":1100,"year":1418,"series":6},"\u002Fblog\u002Fnotes-rework","Book Notes: Rework","My notes and highlights from Rework by Jason Fried and David Heinemeier Hansson on a better way to succeed in business.",[1130,1372],"2021-04-14",{"path":1420,"title":1421,"description":1422,"categories":1423,"draft":1100,"year":1425,"series":6},"\u002Fblog\u002Fone-on-one-meetings","Guide to Effective 1:1 Meetings","One on One meetings are important for your personal & professional growth. Learn how to master 1:1s with your manager and peers.",[1424,1117],"Career","2023-03-05",{"path":1427,"title":1428,"description":1429,"categories":1430,"draft":1100,"year":1431,"series":6},"\u002Fblog\u002Fpersonal-okrs","Personal OKRs for Success","Why one should set personal OKRs and how to achieve success with them",[1117,1131],"2020-06-27",{"path":1433,"title":1434,"description":1435,"categories":1436,"draft":1100,"year":1438,"series":6},"\u002Fblog\u002Fpoker-tips","Poker Tips: Johns Hopkins Poker Class","Notes from Johns Hopkins poker course. This guide will help you improve in Poker and win some large pots.",[1131,1437],"Poker","2020-06-13",{"path":1440,"title":1441,"description":1442,"categories":1443,"draft":1100,"year":1444,"series":6},"\u002Fblog\u002Fpomodoro","Get work done: The Pomo Way","Learn to focus and get productive by following the Pomodoro Technique",[1117],"2020-10-24",{"path":1446,"title":1447,"description":1448,"categories":1449,"draft":1100,"year":1450,"series":6},"\u002Fblog\u002Fpostgres-constraints","Postgres Constraints","Constraints are line of defense for database. Explore various types of constrainsts in postgres",[1262,1098],"2020-11-07",{"path":1452,"title":1453,"description":1454,"categories":1455,"draft":1100,"year":1456,"series":6},"\u002Fblog\u002Fppf-explained","PPF Explained","Learn basics about Public Provident Fund and why you should invest",[1131,1398],"2020-12-24",{"path":1458,"title":1459,"description":1460,"categories":1461,"draft":1100,"year":1462,"series":6},"\u002Fblog\u002Fproductivity-chrome-extensions","Boost Productivity with Chrome Extensions","Utitizing chrome extensions to boost your productivity!",[1117,1140,1139],"2020-04-24",{"path":1464,"title":1465,"description":1466,"categories":1467,"draft":1100,"year":1468,"series":6},"\u002Fblog\u002Fproductivity-in-vscode","Improve your productivity with VS Code","Key VS Code features like the integrated terminal, shortcuts, and extensions that improved my everyday productivity.",[1117,1098],"2020-03-12",{"path":1470,"title":1471,"description":1472,"categories":1473,"draft":1100,"year":1474,"series":6},"\u002Fblog\u002Freading-101","Improving Reading 101","Why reading matters, how to build a reading habit, and what to read next - from my own journey into books.",[1130,1131],"2020-04-04",{"path":1476,"title":1477,"description":1478,"categories":1479,"draft":1100,"year":1480,"series":6},"\u002Fblog\u002Freverse-proxy","Understanding Reverse Proxy","Learn about reverse proxy, how it is different from forward proxy and explore advantages of using it in system design.",[1147,1098],"2021-10-03",{"path":1482,"title":1483,"description":1484,"categories":1485,"draft":1100,"year":1486,"series":6},"\u002Fblog\u002Frunning-periodic-background-task-golang","Running periodic background tasks in Golang","How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.",[1097,1098],"2019-11-21",{"path":1488,"title":1489,"description":1490,"categories":1491,"draft":1100,"year":1492,"series":6},"\u002Fblog\u002Fsessions-in-golang","Sessions using Golang and Redis","How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.",[1097,1262,1098],"2020-02-25",{"path":1494,"title":1495,"description":1496,"categories":1497,"draft":1100,"year":1498,"series":6},"\u002Fblog\u002Fsolid-dry-kiss-yagni","Solid Dry Kiss Yagni","An introduction to the SOLID, DRY, KISS, and YAGNI principles and how they help you write cleaner, robust code.",[1154],"2020-07-17",{"path":1500,"title":1501,"description":1502,"categories":1503,"draft":1100,"year":1504,"series":6},"\u002Fblog\u002Fstack-in-golang","Implement Stack in Golang","Learn how to implement stack data structure in Golang (Full code)",[1097,1098],"2020-09-14",{"path":1506,"title":1507,"description":1508,"categories":1509,"draft":1100,"year":1510,"series":6},"\u002Fblog\u002Fstart-oss-today","Start your Open Source journey today","Start your OSS journey with intro to GIT. Participate in Hacktoberfest!",[1200,1098],"2020-09-19",{"path":1512,"title":1513,"description":1514,"categories":1515,"draft":1100,"year":1517,"series":6},"\u002Fblog\u002Fsticky-social-bar","Sticky social share component in HTML","Learn how to build a social media sharing component in HTML and add it to your website.",[1098,1516],"Frontend","2021-02-05",{"path":1519,"title":1520,"description":1521,"categories":1522,"draft":1100,"year":1523,"series":6},"\u002Fblog\u002Fterm-insurance","Term insurance Simplified","Everything you need to know before you buy a term insurance.",[1131,1398],"2020-11-29",{"path":1525,"title":1526,"description":1527,"categories":1528,"draft":1100,"year":1530,"series":6},"\u002Fblog\u002Fterminal-output-with-redirection","Handling terminal outputs with Redirection","Learn how to handle terminal outputs with Redirection and saving it to files",[1347,1529,1098],"Terminal","2020-09-06",{"path":1532,"title":1533,"description":1534,"categories":1535,"draft":1100,"year":1536,"series":6},"\u002Fblog\u002Fthink-and-grow-rich","Book Notes: Think and Grow Rich","My notes and highlights from Think and Grow Rich by Napoleon Hill, covering its process for building wealth.",[1130,1131],"2020-05-19",{"path":1538,"title":1539,"description":1540,"categories":1541,"draft":1100,"year":1542,"series":6},"\u002Fblog\u002Ftransactions-postgres-golang","Transactions on Postgres with Golang","Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.",[1097,1262,1098],"2020-03-18",{"path":1544,"title":1545,"description":1546,"categories":1547,"draft":1100,"year":1548,"series":6},"\u002Fblog\u002Fwaitgroups-in-golang","WaitGroups in Golang","Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.",[1097,1098],"2022-05-31",{"path":1550,"title":1551,"description":1552,"categories":1553,"draft":1100,"year":1555,"series":6},"\u002Fblog\u002Fwhat-i-use","What I Use: Products and Softwares","List of what I use in my day to day life ranging from terminal, editors, softwares, devices to accessories",[1131,1554],"Tech","2024-06-01",{"path":1557,"title":1558,"description":1559,"categories":1560,"draft":1100,"year":1561,"series":6},"\u002Fblog\u002Fyear-in-review-2020","Year in Review: 2020","It's a wrap! 2020 was a crazy year, See how my year went!",[1131],"2020-12-31",{"path":1563,"title":1564,"description":1565,"categories":1566,"draft":1100,"year":1567,"series":6},"\u002Fblog\u002Fyear-in-review-2021","Year in Review: 2021","It's a wrap! 2021 was a mixed bag, full of ups and downs. Key Goal for 2022: Start now!",[1131],"2021-12-31",1787743428068]