[{"data":1,"prerenderedAt":1221},["ShallowReactive",2],{"blog-go-naming-conventions":3,"blog-all-for-related":765},{"id":4,"title":5,"author":6,"body":7,"cardAlt":748,"categories":749,"description":753,"draft":754,"extension":755,"headerImage":756,"keywords":757,"meta":758,"name":759,"navigation":329,"path":760,"seo":761,"series":6,"stem":762,"updated":6,"year":763,"__hash__":764},"blog\u002Fblog\u002Fgo-naming-conventions.md","Naming Conventions in Golang",null,{"type":8,"value":9,"toc":741},"minimark",[10,19,32,39,46,51,737],[11,12,13,14,18],"p",{},"In the world of software development, choosing the right naming conventions is path to unlocking the gateway to ",[15,16,17],"strong",{},"readable and maintainable code",". Go has seen massive adoption and development in past few years. Go embraces a set of naming conventions designed to promote simplicity, collaboration, and elegance in codebases.",[20,21,22],"blockquote",{},[11,23,24,25],{},"“There are only two hard things in Computer Science: cache invalidation and naming things.” — ",[26,27,31],"a",{"href":28,"rel":29},"https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FTwoHardThings.html",[30],"nofollow","Phil Karlton",[11,33,34,35,38],{},"Naming conventions play a significant role in writing clean and readable code. It is a practice of using meaningful identifiers in the code that describes the purpose of the variable, function, or type. Purpose of these conventions is to make the ",[15,36,37],{},"code easier to understand and maintain",". These are the fundamental blocks to writing good code that leads to fewer errors. This also helps in long term maintainability of large sized projects.",[11,40,41,42,45],{},"In this blog post, we will deep dive into best practices for naming in Go. We will explore the significance of clear and concise naming choices along with practical examples. By the end, you'll gain a deeper understanding of how Go's naming conventions contribute to ",[15,43,44],{},"code readability, ease of collaboration, and the overall development experience",". Let's get started!",[20,47,48],{},[11,49,50],{},"Writing is easy, but reading is painful!",[52,53,54,57,62,70,73,89,112,119,122,149,151,155,198,200,204,244,246,250,289,291,295,298,617],"ads",{},[55,56],"hr",{},[58,59,61],"h2",{"id":60},"package-naming","Package naming",[11,63,64,65,69],{},"Alan Donovan, co-author of \"The Go Programming Language,\" advises, ",[66,67,68],"code",{},"Choose package names that will sound natural in a sentence."," This approach fosters clarity and ensures intuitive import statements throughout your codebase.",[11,71,72],{},"Package name should be:",[74,75,76,80,83,86],"ul",{},[77,78,79],"li",{},"good: short, concise, evocative.",[77,81,82],{},"by convention, packages are given lower case, single-word names;",[77,84,85],{},"no need for underscores or mixedCaps",[77,87,88],{},"common practise is to use package name as the base name of its source directory",[11,90,91,92,95,96,99,100,103,104,107,108,111],{},"Another convention is that the package name is the base name of its source directory; the package in ",[66,93,94],{},"src\u002Fencoding\u002Fbase64"," is imported as ",[66,97,98],{},"\"encoding\u002Fbase64\""," but has name ",[66,101,102],{},"base64",", not ",[66,105,106],{},"encoding_base64"," and not ",[66,109,110],{},"encodingBase64",".",[113,114,116],"h4",{"id":115},"point-to-remember",[15,117,118],{},"Point to Remember",[11,120,121],{},"When importing a package, package name is used to refer to it's content, hence exported names in the package can use that fact to avoid repetition.",[11,123,124,125,128,129,132,133,136,137,140,141,144,145,148],{},"Eg. The function to make new instances of ",[66,126,127],{},"user.User"," would normally be called ",[66,130,131],{},"NewUser",", but since ",[66,134,135],{},"User"," is the only type exported by the package, and since the package is called ",[66,138,139],{},"user",", it's called just ",[66,142,143],{},"New",", which clients of the package see as ",[66,146,147],{},"user.New",". This does sound natural in a sentence.",[55,150],{},[58,152,154],{"id":153},"interface-naming","Interface naming",[74,156,157,160,171,182,191],{},[77,158,159],{},"Use a noun or noun phrase as the name",[77,161,162,163,166,167,170],{},"One-method interfaces are named by the method name plus an -er suffix or similar modification to construct a noun. Eg. ",[66,164,165],{},"Reader",", ",[66,168,169],{},"Writer",", etc.",[77,172,173,174,177,178,181],{},"use ",[66,175,176],{},"MixedCaps"," or ",[66,179,180],{},"mixedCaps"," rather than underscores to write multiword names.",[77,183,184,185,188,189],{},"Use prefix ",[66,186,187],{},"I"," Eg. IUser, IRead, etc. One con - searching for interfaces across codebase is harder due to ",[66,190,187],{},[77,192,193,194,197],{},"Use suffix ",[66,195,196],{},"Interface",". Eg. UserInterface, ReadInterface, etc.",[55,199],{},[58,201,203],{"id":202},"file-naming","File Naming",[205,206,207,210,213,219,222,233],"ol",{},[77,208,209],{},"Generally, file names are single lowercase words.",[77,211,212],{},"Go follows a convention where source files are all lower case with underscore separating multiple words.",[77,214,215,216],{},"Compound file names are separated with ",[66,217,218],{},"_",[77,220,221],{},"File names that begin with “.” or “_” are ignored by the go tool",[77,223,224,225,228,229,232],{},"Test files in Go come with suffix ",[66,226,227],{},"_test.go"," . These are only compiled and run by the ",[66,230,231],{},"go test"," tool.",[77,234,235,236,239,240,243],{},"Files with os and architecture specific suffixes automatically follow those same constraints, e.g. ",[66,237,238],{},"name_linux.go"," will only build on linux, ",[66,241,242],{},"name_amd64.go"," will only build on amd64.",[55,245],{},[58,247,249],{"id":248},"functions-and-variables","Functions and Variables",[74,251,252,255,264,283],{},[77,253,254],{},"Use camel case, exported functions and variables start with uppercase. (unexported\u002Fprivate are lowercase)",[77,256,257,258,260,261],{},"Constant should use all capital letters and use underscore ",[66,259,218],{}," to separate words. Eg. ",[66,262,263],{},"INT_MAX",[77,265,266,267,270,271,166,274,166,277,177,280,170],{},"If variable type is ",[66,268,269],{},"bool",", its name should start with ",[66,272,273],{},"Has",[66,275,276],{},"Is",[66,278,279],{},"Can",[66,281,282],{},"Allow",[77,284,285,286],{},"Avoid cryptic abbreviations. Eg: ",[66,287,288],{},"usrAge := 25",[55,290],{},[58,292,294],{"id":293},"example","Example",[11,296,297],{},"Here's a simple user package that showcases interface, struct, functions and variables.",[299,300,305],"pre",{"className":301,"code":302,"language":303,"meta":304,"style":304},"language-go shiki shiki-themes github-light github-dark","package user \u002F\u002F \u003C- package name\n\nimport \"fmt\"\n\ntype User struct {\n    name string \u002F\u002F private attribute of user struct\n}\n\n\u002F\u002F importers can call using user.New()\nfunc New(name string) *User {\n    return &User{\n        name: name,\n    }\n}\n\n\u002F\u002F using the suffix `Interface` here\ntype UserInterface interface {\n    Name() string\n}\n\n\u002F\u002F public function for user\nfunc (u *User) Name() string {\n    return \"Name: \" + u.name\n}\n\n\u002F\u002F in main.go - to make this code work change package name to main instead\nfunc main() {\n    userA := New(\"mohit\")\n    fmt.Println(userA.Name())\n}\n","go","",[66,306,307,324,331,347,352,368,380,386,391,397,426,440,446,452,457,462,468,481,493,498,503,509,535,549,554,559,565,576,595,612],{"__ignoreMap":304},[308,309,312,316,320],"span",{"class":310,"line":311},"line",1,[308,313,315],{"class":314},"szBVR","package",[308,317,319],{"class":318},"sScJk"," user",[308,321,323],{"class":322},"sJ8bj"," \u002F\u002F \u003C- package name\n",[308,325,327],{"class":310,"line":326},2,[308,328,330],{"emptyLinePlaceholder":329},true,"\n",[308,332,334,337,341,344],{"class":310,"line":333},3,[308,335,336],{"class":314},"import",[308,338,340],{"class":339},"sZZnC"," \"",[308,342,343],{"class":318},"fmt",[308,345,346],{"class":339},"\"\n",[308,348,350],{"class":310,"line":349},4,[308,351,330],{"emptyLinePlaceholder":329},[308,353,355,358,361,364],{"class":310,"line":354},5,[308,356,357],{"class":314},"type",[308,359,360],{"class":318}," User",[308,362,363],{"class":314}," struct",[308,365,367],{"class":366},"sVt8B"," {\n",[308,369,371,374,377],{"class":310,"line":370},6,[308,372,373],{"class":366},"    name ",[308,375,376],{"class":314},"string",[308,378,379],{"class":322}," \u002F\u002F private attribute of user struct\n",[308,381,383],{"class":310,"line":382},7,[308,384,385],{"class":366},"}\n",[308,387,389],{"class":310,"line":388},8,[308,390,330],{"emptyLinePlaceholder":329},[308,392,394],{"class":310,"line":393},9,[308,395,396],{"class":322},"\u002F\u002F importers can call using user.New()\n",[308,398,400,403,406,409,413,416,419,422,424],{"class":310,"line":399},10,[308,401,402],{"class":314},"func",[308,404,405],{"class":318}," New",[308,407,408],{"class":366},"(",[308,410,412],{"class":411},"s4XuR","name",[308,414,415],{"class":314}," string",[308,417,418],{"class":366},") ",[308,420,421],{"class":314},"*",[308,423,135],{"class":318},[308,425,367],{"class":366},[308,427,429,432,435,437],{"class":310,"line":428},11,[308,430,431],{"class":314},"    return",[308,433,434],{"class":314}," &",[308,436,135],{"class":318},[308,438,439],{"class":366},"{\n",[308,441,443],{"class":310,"line":442},12,[308,444,445],{"class":366},"        name: name,\n",[308,447,449],{"class":310,"line":448},13,[308,450,451],{"class":366},"    }\n",[308,453,455],{"class":310,"line":454},14,[308,456,385],{"class":366},[308,458,460],{"class":310,"line":459},15,[308,461,330],{"emptyLinePlaceholder":329},[308,463,465],{"class":310,"line":464},16,[308,466,467],{"class":322},"\u002F\u002F using the suffix `Interface` here\n",[308,469,471,473,476,479],{"class":310,"line":470},17,[308,472,357],{"class":314},[308,474,475],{"class":318}," UserInterface",[308,477,478],{"class":314}," interface",[308,480,367],{"class":366},[308,482,484,487,490],{"class":310,"line":483},18,[308,485,486],{"class":318},"    Name",[308,488,489],{"class":366},"() ",[308,491,492],{"class":314},"string\n",[308,494,496],{"class":310,"line":495},19,[308,497,385],{"class":366},[308,499,501],{"class":310,"line":500},20,[308,502,330],{"emptyLinePlaceholder":329},[308,504,506],{"class":310,"line":505},21,[308,507,508],{"class":322},"\u002F\u002F public function for user\n",[308,510,512,514,517,520,522,524,526,529,531,533],{"class":310,"line":511},22,[308,513,402],{"class":314},[308,515,516],{"class":366}," (",[308,518,519],{"class":411},"u ",[308,521,421],{"class":314},[308,523,135],{"class":318},[308,525,418],{"class":366},[308,527,528],{"class":318},"Name",[308,530,489],{"class":366},[308,532,376],{"class":314},[308,534,367],{"class":366},[308,536,538,540,543,546],{"class":310,"line":537},23,[308,539,431],{"class":314},[308,541,542],{"class":339}," \"Name: \"",[308,544,545],{"class":314}," +",[308,547,548],{"class":366}," u.name\n",[308,550,552],{"class":310,"line":551},24,[308,553,385],{"class":366},[308,555,557],{"class":310,"line":556},25,[308,558,330],{"emptyLinePlaceholder":329},[308,560,562],{"class":310,"line":561},26,[308,563,564],{"class":322},"\u002F\u002F in main.go - to make this code work change package name to main instead\n",[308,566,568,570,573],{"class":310,"line":567},27,[308,569,402],{"class":314},[308,571,572],{"class":318}," main",[308,574,575],{"class":366},"() {\n",[308,577,579,582,585,587,589,592],{"class":310,"line":578},28,[308,580,581],{"class":366},"    userA ",[308,583,584],{"class":314},":=",[308,586,405],{"class":318},[308,588,408],{"class":366},[308,590,591],{"class":339},"\"mohit\"",[308,593,594],{"class":366},")\n",[308,596,598,601,604,607,609],{"class":310,"line":597},29,[308,599,600],{"class":366},"    fmt.",[308,602,603],{"class":318},"Println",[308,605,606],{"class":366},"(userA.",[308,608,528],{"class":318},[308,610,611],{"class":366},"())\n",[308,613,615],{"class":310,"line":614},30,[308,616,385],{"class":366},[52,618,619,621,625,647,650,652,656,672,677,700,709,718,720,723,732],{},[55,620],{},[58,622,624],{"id":623},"general-guidelines","General guidelines",[74,626,627,630,633],{},[77,628,629],{},"Long names don't automatically make things more readable. A helpful doc comment can often be more valuable than an extra long name.",[77,631,632],{},"There's no line limit in Go but having too long lines hampers readability.",[77,634,635,636,639,640,643,644],{},"Avoid using ",[66,637,638],{},"Get"," as prefix for getters. Rather, use of upper-case names for export provides the hook to discriminate the field from the method. Eg. ",[66,641,642],{},"user.User()"," instead of ",[66,645,646],{},"user.GetUser()",[11,648,649],{},"Naming conventions play a crucial role in creating clean, maintainable, and collaborative code. Go's approach to naming favors clarity and simplicity over cleverness, aligning with its overall design philosophy. By adhering to Go's naming conventions, you can enhance the readability of your code, foster collaboration, and make your programs more robust and enjoyable to work with.",[55,651],{},[58,653,655],{"id":654},"resources","Resources",[74,657,658,665],{},[77,659,660],{},[26,661,664],{"href":662,"rel":663},"https:\u002F\u002Fgo.dev\u002Fdoc\u002Feffective_go#names",[30],"Effective Go - Names",[77,666,667],{},[26,668,671],{"href":669,"rel":670},"https:\u002F\u002Fdave.cheney.net\u002Fpractical-go\u002Fpresentations\u002Fqcon-china.html#_guiding_principles",[30],"Practical Go - Dave Cheney",[673,674,676],"h3",{"id":675},"books-to-learn-golang","Books to learn Golang",[74,678,679,686,693],{},[77,680,681],{},[26,682,685],{"href":683,"rel":684},"https:\u002F\u002Famzn.to\u002F3fYLCqz",[30],"Go Programming Language",[77,687,688],{},[26,689,692],{"href":690,"rel":691},"https:\u002F\u002Famzn.to\u002F3s7fWS3",[30],"Learning Go",[77,694,695],{},[26,696,699],{"href":697,"rel":698},"https:\u002F\u002Famzn.to\u002F3t6PM37",[30],"Go in Action",[11,701,702,703,708],{},"Explore more ",[26,704,707],{"href":705,"rel":706},"https:\u002F\u002Fcapitaloneshopping.com\u002Fc\u002Fbooks-technology-books\u002FJYR0OX4W",[30],"programming books"," and get a copy.",[11,710,711,712,717],{},"Liked the article? Consider ",[26,713,716],{"href":714,"rel":715},"https:\u002F\u002Fwww.buymeacoffee.com\u002FchHAzigTb",[30],"supporting me"," ☕️",[55,719],{},[11,721,722],{},"I hope you learned something new. Feel free to suggest improvements ✔️",[11,724,725,726,731],{},"I share regular updates and resources on ",[26,727,730],{"href":728,"rel":729},"https:\u002F\u002Ftwitter.com\u002Fmkfeuhrer",[30],"Twitter",". Let's connect!",[11,733,734],{},[15,735,736],{},"Keep exploring 🔎 Keep learning 🚀",[738,739,740],"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 .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .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);}",{"title":304,"searchDepth":326,"depth":326,"links":742},[743,744,745,746,747],{"id":60,"depth":326,"text":61},{"id":153,"depth":326,"text":154},{"id":202,"depth":326,"text":203},{"id":248,"depth":326,"text":249},{"id":293,"depth":326,"text":294},"Naming Conventions in Go - Key to Readable and Maintainable Code",[750,751,752],"Golang","Programming","Code Quality","Why naming conventions matter in Go, with best practices and practical examples for clear, readable, maintainable code.",false,"md","blog\u002Fgo-naming-conventions\u002Fgo-naming-conventions-card.webp","Go naming conventions, Go code readability, Go package naming, Go interface naming, Go function naming, Go variable naming",{},"go-naming-conventions","\u002Fblog\u002Fgo-naming-conventions",{"title":5,"description":753},"blog\u002Fgo-naming-conventions","2023-05-19","JmgdvzGu6jTnHk1UY_nTm93H_NGhMsaw6Iix8Zlt38E",[766,773,779,787,796,803,810,817,823,829,835,841,847,853,860,866,872,878,884,890,896,902,908,910,917,923,929,935,941,947,953,959,965,971,977,983,989,995,1002,1008,1014,1020,1027,1033,1039,1046,1053,1059,1066,1072,1079,1085,1092,1098,1104,1110,1116,1122,1128,1134,1140,1146,1152,1158,1164,1171,1177,1184,1190,1196,1202,1209,1215],{"path":767,"title":768,"description":769,"categories":770,"draft":329,"year":772,"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.",[771,751],"Productivity","2026-08-08",{"path":774,"title":775,"description":776,"categories":777,"draft":754,"year":778,"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",[750,751],"2020-01-12",{"path":780,"title":781,"description":782,"categories":783,"draft":754,"year":786,"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.",[784,785],"Books","Life","2021-12-26",{"path":788,"title":789,"description":790,"categories":791,"draft":754,"year":795,"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.",[792,793,794],"Side Projects","Web","Tools","2020-05-26",{"path":797,"title":798,"description":799,"categories":800,"draft":754,"year":802,"series":6},"\u002Fblog\u002Fcap-theorem","CAP Theorem Explained","Learn the concept and misconceptions around popular CAP theorem in system design.",[801,751],"System Design","2021-07-26",{"path":804,"title":805,"description":806,"categories":807,"draft":754,"year":809,"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.",[808],"Engineering Principles","2020-07-20",{"path":811,"title":812,"description":813,"categories":814,"draft":754,"year":816,"series":6},"\u002Fblog\u002Fdark-mode","Add Dark mode to websites","Dark mode is ❤️️ Add it to your websites with little CSS and JS",[815,793],"Javascript","2020-07-04",{"path":818,"title":819,"description":820,"categories":821,"draft":754,"year":822,"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.",[750,751],"2020-10-09",{"path":824,"title":825,"description":826,"categories":827,"draft":754,"year":828,"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.",[750,751],"2021-05-05",{"path":830,"title":831,"description":832,"categories":833,"draft":754,"year":834,"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.",[750,751],"2021-12-18",{"path":836,"title":837,"description":838,"categories":839,"draft":754,"year":840,"series":6},"\u002Fblog\u002Fenvironment-variable-golang","Guide to Environment variables in Go","Learn what are environment variables and how to use them in Go",[750,751],"2020-08-14",{"path":842,"title":843,"description":844,"categories":845,"draft":754,"year":846,"series":6},"\u002Fblog\u002Ferror-handling-golang","Handle errors the right way — Golang","How to handle errors in golang to make your life easy",[750,751],"2020-01-30",{"path":848,"title":849,"description":850,"categories":851,"draft":754,"year":852,"series":6},"\u002Fblog\u002Ffile-upload-golang","Uploading Files in Golang with Multipart Request","Learn how to upload files from your client to server as a multipart request in Golang.",[750,751],"2021-03-13",{"path":854,"title":855,"description":856,"categories":857,"draft":754,"year":859,"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.",[858,751],"Git","2022-03-20",{"path":861,"title":862,"description":863,"categories":864,"draft":754,"year":865,"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",[858,751],"2023-08-24",{"path":867,"title":868,"description":869,"categories":870,"draft":754,"year":871,"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.",[858,751],"2023-10-16",{"path":873,"title":874,"description":875,"categories":876,"draft":754,"year":877,"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.",[858,751],"2020-06-18",{"path":879,"title":880,"description":881,"categories":882,"draft":754,"year":883,"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",[750,751],"2022-11-26",{"path":885,"title":886,"description":887,"categories":888,"draft":754,"year":889,"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.",[750,751],"2022-11-27",{"path":891,"title":892,"description":893,"categories":894,"draft":754,"year":895,"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).",[750,751],"2024-03-28",{"path":897,"title":898,"description":899,"categories":900,"draft":754,"year":901,"series":6},"\u002Fblog\u002Fgo-makefile","Ultimate Makefile for Golang","Boost your productivity and save time with ultimate Makefile for Golang projects.",[750,751],"2024-06-10",{"path":903,"title":904,"description":905,"categories":906,"draft":754,"year":907,"series":6},"\u002Fblog\u002Fgo-middleware","Mastering Middlewares in Golang","Learn about middlewares, their use cases and how to implement them in Golang applications",[750,751],"2022-03-13",{"path":760,"title":5,"description":753,"categories":909,"draft":754,"year":763,"series":6},[750,751,752],{"path":911,"title":912,"description":913,"categories":914,"draft":754,"year":916,"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.",[750,915,751],"Database","2020-05-03",{"path":918,"title":919,"description":920,"categories":921,"draft":754,"year":922,"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.",[750,751],"2020-09-10",{"path":924,"title":925,"description":926,"categories":927,"draft":754,"year":928,"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.",[801,751],"2022-01-23",{"path":930,"title":931,"description":932,"categories":933,"draft":754,"year":934,"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",[750,751],"2022-09-12",{"path":936,"title":937,"description":938,"categories":939,"draft":754,"year":940,"series":6},"\u002Fblog\u002Fhexagonal-architecture","Guide to Hexagonal Architecture","Learn how to design efficient application with hexagonal architecture with practical example",[801,751],"2020-12-13",{"path":942,"title":943,"description":944,"categories":945,"draft":754,"year":946,"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.",[793,751],"2020-07-30",{"path":948,"title":949,"description":950,"categories":951,"draft":754,"year":952,"series":6},"\u002Fblog\u002Fintroduction-to-goroutines","Introduction to Goroutines","Understand the basics of concurrency and learn how to work with Goroutines in golang.",[750,751],"2021-04-10",{"path":954,"title":955,"description":956,"categories":957,"draft":754,"year":958,"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.",[751,915,750],"2021-02-13",{"path":960,"title":961,"description":962,"categories":963,"draft":754,"year":964,"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.",[751,793],"2021-11-20",{"path":966,"title":967,"description":968,"categories":969,"draft":754,"year":970,"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",[785,784],"2022-04-09",{"path":972,"title":973,"description":974,"categories":975,"draft":754,"year":976,"series":6},"\u002Fblog\u002Flearn-unlearn-relearn","Learn - Unlearn - Relearn","Unlearning things to learn new is the way to grow. Discover how to do that!",[771,785],"2020-09-25",{"path":978,"title":979,"description":980,"categories":981,"draft":754,"year":982,"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.",[750,751],"2021-07-07",{"path":984,"title":985,"description":986,"categories":987,"draft":754,"year":988,"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.",[801,751],"2021-05-29",{"path":990,"title":991,"description":992,"categories":993,"draft":754,"year":994,"series":6},"\u002Fblog\u002Fmaking-decisions-the-right-way","Making Decisions: The right way","Decisions are hard! Learn how to make the right decisions always",[771,785],"2020-06-07",{"path":996,"title":997,"description":998,"categories":999,"draft":754,"year":1001,"series":6},"\u002Fblog\u002Fmanage-logs-with-logrotate","Using Logrotate to manage logs","Learn how to use logrotate system utility to manage logs with example",[1000,751],"Linux","2020-09-08",{"path":1003,"title":1004,"description":1005,"categories":1006,"draft":754,"year":1007,"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.",[750,751],"2020-03-31",{"path":1009,"title":1010,"description":1011,"categories":1012,"draft":754,"year":1013,"series":6},"\u002Fblog\u002Fnotes-almanack-naval","Book Notes : Almanack of Naval Ravikant","My notes\u002Fhighlights from Almanack of Naval Ravikant book by Eric Jorgenson",[784,785],"2020-10-17",{"path":1015,"title":1016,"description":1017,"categories":1018,"draft":754,"year":1019,"series":6},"\u002Fblog\u002Fnotes-anything-you-want","Book Notes : Anything you want","My notes\u002Fhighlights from Anything you want book by Derek Sivers",[784,785],"2021-09-25",{"path":1021,"title":1022,"description":1023,"categories":1024,"draft":754,"year":1026,"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.",[784,1025],"Startups","2020-11-03",{"path":1028,"title":1029,"description":1030,"categories":1031,"draft":754,"year":1032,"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",[784,785],"2020-09-16",{"path":1034,"title":1035,"description":1036,"categories":1037,"draft":754,"year":1038,"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",[784,1025],"2020-01-07",{"path":1040,"title":1041,"description":1042,"categories":1043,"draft":754,"year":1045,"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.",[784,1044],"Entrepreneurship","2022-07-02",{"path":1047,"title":1048,"description":1049,"categories":1050,"draft":754,"year":1052,"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.",[784,1051],"Personal Finance","2021-02-26",{"path":1054,"title":1055,"description":1056,"categories":1057,"draft":754,"year":1058,"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.",[784,1025],"2020-04-26",{"path":1060,"title":1061,"description":1062,"categories":1063,"draft":754,"year":1065,"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.",[784,1064],"Design","2020-05-09",{"path":1067,"title":1068,"description":1069,"categories":1070,"draft":754,"year":1071,"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.",[784,1025],"2021-04-14",{"path":1073,"title":1074,"description":1075,"categories":1076,"draft":754,"year":1078,"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.",[1077,771],"Career","2023-03-05",{"path":1080,"title":1081,"description":1082,"categories":1083,"draft":754,"year":1084,"series":6},"\u002Fblog\u002Fpersonal-okrs","Personal OKRs for Success","Why one should set personal OKRs and how to achieve success with them",[771,785],"2020-06-27",{"path":1086,"title":1087,"description":1088,"categories":1089,"draft":754,"year":1091,"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.",[785,1090],"Poker","2020-06-13",{"path":1093,"title":1094,"description":1095,"categories":1096,"draft":754,"year":1097,"series":6},"\u002Fblog\u002Fpomodoro","Get work done: The Pomo Way","Learn to focus and get productive by following the Pomodoro Technique",[771],"2020-10-24",{"path":1099,"title":1100,"description":1101,"categories":1102,"draft":754,"year":1103,"series":6},"\u002Fblog\u002Fpostgres-constraints","Postgres Constraints","Constraints are line of defense for database. Explore various types of constrainsts in postgres",[915,751],"2020-11-07",{"path":1105,"title":1106,"description":1107,"categories":1108,"draft":754,"year":1109,"series":6},"\u002Fblog\u002Fppf-explained","PPF Explained","Learn basics about Public Provident Fund and why you should invest",[785,1051],"2020-12-24",{"path":1111,"title":1112,"description":1113,"categories":1114,"draft":754,"year":1115,"series":6},"\u002Fblog\u002Fproductivity-chrome-extensions","Boost Productivity with Chrome Extensions","Utitizing chrome extensions to boost your productivity!",[771,794,793],"2020-04-24",{"path":1117,"title":1118,"description":1119,"categories":1120,"draft":754,"year":1121,"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.",[771,751],"2020-03-12",{"path":1123,"title":1124,"description":1125,"categories":1126,"draft":754,"year":1127,"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.",[784,785],"2020-04-04",{"path":1129,"title":1130,"description":1131,"categories":1132,"draft":754,"year":1133,"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.",[801,751],"2021-10-03",{"path":1135,"title":1136,"description":1137,"categories":1138,"draft":754,"year":1139,"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.",[750,751],"2019-11-21",{"path":1141,"title":1142,"description":1143,"categories":1144,"draft":754,"year":1145,"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.",[750,915,751],"2020-02-25",{"path":1147,"title":1148,"description":1149,"categories":1150,"draft":754,"year":1151,"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.",[808],"2020-07-17",{"path":1153,"title":1154,"description":1155,"categories":1156,"draft":754,"year":1157,"series":6},"\u002Fblog\u002Fstack-in-golang","Implement Stack in Golang","Learn how to implement stack data structure in Golang (Full code)",[750,751],"2020-09-14",{"path":1159,"title":1160,"description":1161,"categories":1162,"draft":754,"year":1163,"series":6},"\u002Fblog\u002Fstart-oss-today","Start your Open Source journey today","Start your OSS journey with intro to GIT. Participate in Hacktoberfest!",[858,751],"2020-09-19",{"path":1165,"title":1166,"description":1167,"categories":1168,"draft":754,"year":1170,"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.",[751,1169],"Frontend","2021-02-05",{"path":1172,"title":1173,"description":1174,"categories":1175,"draft":754,"year":1176,"series":6},"\u002Fblog\u002Fterm-insurance","Term insurance Simplified","Everything you need to know before you buy a term insurance.",[785,1051],"2020-11-29",{"path":1178,"title":1179,"description":1180,"categories":1181,"draft":754,"year":1183,"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",[1000,1182,751],"Terminal","2020-09-06",{"path":1185,"title":1186,"description":1187,"categories":1188,"draft":754,"year":1189,"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.",[784,785],"2020-05-19",{"path":1191,"title":1192,"description":1193,"categories":1194,"draft":754,"year":1195,"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.",[750,915,751],"2020-03-18",{"path":1197,"title":1198,"description":1199,"categories":1200,"draft":754,"year":1201,"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.",[750,751],"2022-05-31",{"path":1203,"title":1204,"description":1205,"categories":1206,"draft":754,"year":1208,"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",[785,1207],"Tech","2024-06-01",{"path":1210,"title":1211,"description":1212,"categories":1213,"draft":754,"year":1214,"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!",[785],"2020-12-31",{"path":1216,"title":1217,"description":1218,"categories":1219,"draft":754,"year":1220,"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!",[785],"2021-12-31",1787743427698]