[{"data":1,"prerenderedAt":2624},["ShallowReactive",2],{"blog-linting-in-golang":3,"blog-all-for-related":2130},{"id":4,"title":5,"author":6,"body":7,"cardAlt":5,"categories":2116,"description":2119,"draft":2120,"extension":2121,"headerImage":2122,"keywords":2123,"meta":2124,"name":71,"navigation":269,"path":2125,"seo":2126,"series":6,"stem":2127,"updated":6,"year":2128,"__hash__":2129},"blog\u002Fblog\u002Flinting-in-golang.md","Introduction to Linting in Go",null,{"type":8,"value":9,"toc":2102},"minimark",[10,14,19,22,29,37,42,66,69,73,85,96,129,138,142,152,223,226,238,240,244,247,297,303,318,321,713,728,745,752,766,768,772,778,797,811,818,1913,1926,1928,1932,1941,2024,2027,2031,2052,2056,2079,2081,2084,2093,2098],[11,12,13],"p",{},"In this blog I'll be explaining details about linting and it's benefits. You'll also learn about multiple linters available in Golang and how you can use start using linting in your Go applications.",[15,16,18],"h2",{"id":17},"what-is-linting","What is Linting?",[11,20,21],{},"When you are building any software application you'll have to deal with a lot of bugs and errors during development. No matter how good you are, there will always be a fair chance that you miss something. Linting is one way to avoid such errors right during developement.",[11,23,24],{},[25,26],"img",{"alt":27,"src":28},"Programming bugs meme","https:\u002F\u002Fwww.mohitkhare.com\u002Fimages\u002Fblog\u002Flinting-in-golang\u002Fbugs.webp",[11,30,31,32,36],{},"Linting is the process of ",[33,34,35],"strong",{},"analyzing source code for bugs, programming and stylistic errors",". It also helps in following a good coding standard across the project where multiple developers might be working together. Linting is achieved using a tool popularly known as linter.",[38,39,41],"h3",{"id":40},"importance-of-linting-code","Importance of linting code",[43,44,45,49,56,59],"ol",{},[46,47,48],"li",{},"Detecting bugs, typos, unused code and possible errors.",[46,50,51,52,55],{},"Linting helps in ",[33,53,54],{},"faster development",".",[46,57,58],{},"Improving the overall quality of the code. Eg. Setting line length limit, avoiding redundant print statements, etc.",[46,60,61,62,65],{},"Faster and ",[33,63,64],{},"better code review"," since linting already performs static code checks.",[67,68],"hr",{},[15,70,72],{"id":71},"linting-in-golang","Linting in Golang",[11,74,75,76,80,81,84],{},"Now that we have a basic understanding about linting, let's learn how to use this in our Go applications. Actually golang already provides some basic tools like ",[77,78,79],"code",{},"gofmt"," that deals with formatting the Go code and ",[77,82,83],{},"govet"," that examines the source code and reports suspicious constructs.",[11,86,87,88,95],{},"There is a ",[89,90,94],"a",{"href":91,"rel":92},"https:\u002F\u002Fgithub.com\u002Fgolangci\u002Fawesome-go-linters",[93],"nofollow","wide range of linters"," available today most of which have been built by the amazing Go community. Let's discuss about some some useful linters -",[97,98,99,105,117,123],"ul",{},[46,100,101,104],{},[33,102,103],{},"goimports"," - handles formatting and automatically adds the required packages. It also removes the unreferenced imports.",[46,106,107,110,111,116],{},[33,108,109],{},"gocyclo"," - calculates ",[89,112,115],{"href":113,"rel":114},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCyclomatic_complexity",[93],"cyclomatic complexities"," of functions in Go source code. This is really helpful in identifying possible refactoring to make functions concise and clean.",[46,118,119,122],{},[33,120,121],{},"unused"," - checks for unused constants, variables, functions and types.",[46,124,125,128],{},[33,126,127],{},"errcheck"," - checks for unhandled errors in go programs. This helps in identifying possible critical bugs that were missed during developement.",[11,130,131,132,137],{},"There are 50+ linters available. You don't want to import each one of them in your package manually. To solve this we have ",[89,133,136],{"href":134,"rel":135},"https:\u002F\u002Fgolangci-lint.run\u002F",[93],"golangci-lint",". It is the preferred Go linters aggregator that covers most the linters you'll ever need. It runs these linters in parallel and reuses the build cache for improved performance during development.",[38,139,141],{"id":140},"install-golangci-lint","Install golangci-lint",[11,143,144,145,147,148,151],{},"We will install ",[77,146,136],{}," by fetching the binary via curl. You can modify the version if required. Here we are installing the ",[77,149,150],{},"v1.41.1"," version.",[153,154,159],"pre",{"className":155,"code":156,"language":157,"meta":158,"style":158},"language-bash shiki shiki-themes github-light github-dark","# binary will be $(go env GOPATH)\u002Fbin\u002Fgolangci-lint\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh | sh -s -- -b $(go env GOPATH)\u002Fbin v1.41.1\n","bash","",[77,160,161,170],{"__ignoreMap":158},[162,163,166],"span",{"class":164,"line":165},"line",1,[162,167,169],{"class":168},"sJ8bj","# binary will be $(go env GOPATH)\u002Fbin\u002Fgolangci-lint\n",[162,171,173,177,181,185,189,192,195,198,201,205,208,211,214,217,220],{"class":164,"line":172},2,[162,174,176],{"class":175},"sScJk","curl",[162,178,180],{"class":179},"sj4cs"," -sSfL",[162,182,184],{"class":183},"sZZnC"," https:\u002F\u002Fraw.githubusercontent.com\u002Fgolangci\u002Fgolangci-lint\u002Fmaster\u002Finstall.sh",[162,186,188],{"class":187},"szBVR"," |",[162,190,191],{"class":175}," sh",[162,193,194],{"class":179}," -s",[162,196,197],{"class":179}," --",[162,199,200],{"class":179}," -b",[162,202,204],{"class":203},"sVt8B"," $(",[162,206,207],{"class":175},"go",[162,209,210],{"class":183}," env",[162,212,213],{"class":183}," GOPATH",[162,215,216],{"class":203},")",[162,218,219],{"class":183},"\u002Fbin",[162,221,222],{"class":183}," v1.41.1\n",[11,224,225],{},"Let's confirm the installation by running the following command.",[153,227,229],{"className":155,"code":228,"language":157,"meta":158,"style":158},"golangci-lint --version\n",[77,230,231],{"__ignoreMap":158},[162,232,233,235],{"class":164,"line":165},[162,234,136],{"class":175},[162,236,237],{"class":179}," --version\n",[67,239],{},[38,241,243],{"id":242},"running-golangci-lint","Running golangci-lint",[11,245,246],{},"To run the linters run the following command.",[153,248,250],{"className":155,"code":249,"language":157,"meta":158,"style":158},"# for current directory and subdirectories\ngolangci-lint run\n\n# for a specific directory\ngolangci-lint run \u003Cdirname>\n",[77,251,252,257,264,271,277],{"__ignoreMap":158},[162,253,254],{"class":164,"line":165},[162,255,256],{"class":168},"# for current directory and subdirectories\n",[162,258,259,261],{"class":164,"line":172},[162,260,136],{"class":175},[162,262,263],{"class":183}," run\n",[162,265,267],{"class":164,"line":266},3,[162,268,270],{"emptyLinePlaceholder":269},true,"\n",[162,272,274],{"class":164,"line":273},4,[162,275,276],{"class":168},"# for a specific directory\n",[162,278,280,282,285,288,291,294],{"class":164,"line":279},5,[162,281,136],{"class":175},[162,283,284],{"class":183}," run",[162,286,287],{"class":187}," \u003C",[162,289,290],{"class":183},"dirnam",[162,292,293],{"class":203},"e",[162,295,296],{"class":187},">\n",[11,298,299,300],{},"This tool comes with a set of linters that are enabled by default while others are disabled. You can check all the available linters using ",[77,301,302],{},"help",[153,304,306],{"className":155,"code":305,"language":157,"meta":158,"style":158},"golangci-lint help linters\n",[77,307,308],{"__ignoreMap":158},[162,309,310,312,315],{"class":164,"line":165},[162,311,136],{"class":175},[162,313,314],{"class":183}," help",[162,316,317],{"class":183}," linters\n",[11,319,320],{},"This would return a list of linters. Output would be like this.",[153,322,324],{"className":155,"code":323,"language":157,"meta":158,"style":158},"Enabled by default linters:\ndeadcode: Finds unused code [fast: true, auto-fix: false]\nerrcheck: Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: true, auto-fix: false]\ngosimple (megacheck): Linter for Go source code that specializes in simplifying a code [fast: true, auto-fix: false]\ngovet (vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: true, auto-fix: false]\nineffassign: Detects when assignments to existing variables are not used [fast: true, auto-fix: false]\nstaticcheck (megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: true, auto-fix: false]\nstructcheck: Finds unused struct fields [fast: true, auto-fix: false]\ntypecheck: Like the front-end of a Go compiler, parses and type-checks Go code [fast: true, auto-fix: false]\nunused (megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]\nvarcheck: Finds unused global variables and constants [fast: true, auto-fix: false]\n",[77,325,326,340,372,451,475,521,565,582,610,660,681],{"__ignoreMap":158},[162,327,328,331,334,337],{"class":164,"line":165},[162,329,330],{"class":175},"Enabled",[162,332,333],{"class":183}," by",[162,335,336],{"class":183}," default",[162,338,339],{"class":183}," linters:\n",[162,341,342,345,348,351,354,357,360,363,366,369],{"class":164,"line":172},[162,343,344],{"class":175},"deadcode:",[162,346,347],{"class":183}," Finds",[162,349,350],{"class":183}," unused",[162,352,353],{"class":183}," code",[162,355,356],{"class":203}," [fast: ",[162,358,359],{"class":179},"true",[162,361,362],{"class":183},",",[162,364,365],{"class":183}," auto-fix:",[162,367,368],{"class":179}," false",[162,370,371],{"class":183},"]\n",[162,373,374,377,380,383,386,389,392,395,397,400,403,406,409,412,415,417,419,422,425,428,431,433,436,439,441,443,445,447,449],{"class":164,"line":266},[162,375,376],{"class":175},"errcheck:",[162,378,379],{"class":183}," Errcheck",[162,381,382],{"class":183}," is",[162,384,385],{"class":183}," a",[162,387,388],{"class":183}," program",[162,390,391],{"class":183}," for",[162,393,394],{"class":183}," checking",[162,396,391],{"class":183},[162,398,399],{"class":183}," unchecked",[162,401,402],{"class":183}," errors",[162,404,405],{"class":183}," in",[162,407,408],{"class":183}," go",[162,410,411],{"class":183}," programs.",[162,413,414],{"class":183}," These",[162,416,399],{"class":183},[162,418,402],{"class":183},[162,420,421],{"class":183}," can",[162,423,424],{"class":183}," be",[162,426,427],{"class":183}," critical",[162,429,430],{"class":183}," bugs",[162,432,405],{"class":183},[162,434,435],{"class":183}," some",[162,437,438],{"class":183}," cases",[162,440,356],{"class":203},[162,442,359],{"class":179},[162,444,362],{"class":183},[162,446,365],{"class":183},[162,448,368],{"class":179},[162,450,371],{"class":183},[162,452,453,456,459,462,465,467,470,473],{"class":164,"line":273},[162,454,455],{"class":175},"gosimple",[162,457,458],{"class":203}," (megacheck): Linter ",[162,460,461],{"class":187},"for",[162,463,464],{"class":203}," Go source code that specializes in simplifying a code [fast: ",[162,466,359],{"class":179},[162,468,469],{"class":203},", auto-fix: ",[162,471,472],{"class":179},"false",[162,474,371],{"class":203},[162,476,477,479,482,485,488,491,494,497,500,503,506,509,511,513,515,517,519],{"class":164,"line":279},[162,478,83],{"class":175},[162,480,481],{"class":203}," (vet, ",[162,483,484],{"class":183},"vetshadow",[162,486,487],{"class":203},"): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments ",[162,489,490],{"class":187},"do",[162,492,493],{"class":175}," not",[162,495,496],{"class":183}," align",[162,498,499],{"class":183}," with",[162,501,502],{"class":183}," the",[162,504,505],{"class":183}," format",[162,507,508],{"class":183}," string",[162,510,356],{"class":203},[162,512,359],{"class":179},[162,514,362],{"class":183},[162,516,365],{"class":183},[162,518,368],{"class":179},[162,520,371],{"class":183},[162,522,524,527,530,533,536,539,542,545,548,550,553,555,557,559,561,563],{"class":164,"line":523},6,[162,525,526],{"class":175},"ineffassign:",[162,528,529],{"class":183}," Detects",[162,531,532],{"class":183}," when",[162,534,535],{"class":183}," assignments",[162,537,538],{"class":183}," to",[162,540,541],{"class":183}," existing",[162,543,544],{"class":183}," variables",[162,546,547],{"class":183}," are",[162,549,493],{"class":183},[162,551,552],{"class":183}," used",[162,554,356],{"class":203},[162,556,359],{"class":179},[162,558,362],{"class":183},[162,560,365],{"class":183},[162,562,368],{"class":179},[162,564,371],{"class":183},[162,566,568,571,574,576,578,580],{"class":164,"line":567},7,[162,569,570],{"class":175},"staticcheck",[162,572,573],{"class":203}," (megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: ",[162,575,359],{"class":179},[162,577,469],{"class":203},[162,579,472],{"class":179},[162,581,371],{"class":203},[162,583,585,588,590,592,595,598,600,602,604,606,608],{"class":164,"line":584},8,[162,586,587],{"class":175},"structcheck:",[162,589,347],{"class":183},[162,591,350],{"class":183},[162,593,594],{"class":183}," struct",[162,596,597],{"class":183}," fields",[162,599,356],{"class":203},[162,601,359],{"class":179},[162,603,362],{"class":183},[162,605,365],{"class":183},[162,607,368],{"class":179},[162,609,371],{"class":183},[162,611,613,616,619,621,624,627,629,632,635,638,641,644,646,648,650,652,654,656,658],{"class":164,"line":612},9,[162,614,615],{"class":175},"typecheck:",[162,617,618],{"class":183}," Like",[162,620,502],{"class":183},[162,622,623],{"class":183}," front-end",[162,625,626],{"class":183}," of",[162,628,385],{"class":183},[162,630,631],{"class":183}," Go",[162,633,634],{"class":183}," compiler,",[162,636,637],{"class":183}," parses",[162,639,640],{"class":183}," and",[162,642,643],{"class":183}," type-checks",[162,645,631],{"class":183},[162,647,353],{"class":183},[162,649,356],{"class":203},[162,651,359],{"class":179},[162,653,362],{"class":183},[162,655,365],{"class":183},[162,657,368],{"class":179},[162,659,371],{"class":183},[162,661,663,665,668,670,673,675,677,679],{"class":164,"line":662},10,[162,664,121],{"class":175},[162,666,667],{"class":203}," (megacheck): Checks Go code ",[162,669,461],{"class":187},[162,671,672],{"class":203}," unused constants, variables, functions and types [fast: ",[162,674,472],{"class":179},[162,676,469],{"class":203},[162,678,472],{"class":179},[162,680,371],{"class":203},[162,682,684,687,689,691,694,696,698,701,703,705,707,709,711],{"class":164,"line":683},11,[162,685,686],{"class":175},"varcheck:",[162,688,347],{"class":183},[162,690,350],{"class":183},[162,692,693],{"class":183}," global",[162,695,544],{"class":183},[162,697,640],{"class":183},[162,699,700],{"class":183}," constants",[162,702,356],{"class":203},[162,704,359],{"class":179},[162,706,362],{"class":183},[162,708,365],{"class":183},[162,710,368],{"class":179},[162,712,371],{"class":183},[11,714,715,716,719,720,723,724,727],{},"If you want to enable a specific linter use ",[77,717,718],{},"-E\u002F--enable"," option. Similarly to disable a linter use ",[77,721,722],{},"-D\u002F--disable"," option with ",[77,725,726],{},"run"," command.",[153,729,731],{"className":155,"code":730,"language":157,"meta":158,"style":158},"golangci-lint run -E errcheck\n",[77,732,733],{"__ignoreMap":158},[162,734,735,737,739,742],{"class":164,"line":165},[162,736,136],{"class":175},[162,738,284],{"class":183},[162,740,741],{"class":179}," -E",[162,743,744],{"class":183}," errcheck\n",[11,746,747,748,751],{},"You can disable all linters using ",[77,749,750],{},"--disable-all"," option.",[153,753,755],{"className":155,"code":754,"language":157,"meta":158,"style":158},"golangci-lint run --disable-all\n",[77,756,757],{"__ignoreMap":158},[162,758,759,761,763],{"class":164,"line":165},[162,760,136],{"class":175},[162,762,284],{"class":183},[162,764,765],{"class":179}," --disable-all\n",[67,767],{},[38,769,771],{"id":770},"using-golangci-lint","Using golangci-lint",[11,773,774,775,777],{},"You can possibly add tens of linters in the above command and enable them, but this seems like a lot of work. To make things clean and simple - recommended way to use ",[77,776,136],{}," is via configuration file.",[11,779,780,781,784,785,788,789,792,793,796],{},"Create the ",[77,782,783],{},".golangci-lint.yml"," in root directory of your project. We are using the ",[77,786,787],{},"yaml"," format but you can choose ",[77,790,791],{},"toml"," or ",[77,794,795],{},"json"," format as well.",[11,798,799,800,805,806,55],{},"You can directly use this ",[89,801,804],{"href":802,"rel":803},"https:\u002F\u002Fgolangci-lint.run\u002Fusage\u002Fconfiguration\u002F",[93],"official sample configuration"," that contains a lot of linters with explanation. Feel free to edit this and add new linters available ",[89,807,810],{"href":808,"rel":809},"https:\u002F\u002Fgolangci-lint.run\u002Fusage\u002Flinters\u002F",[93],"here",[11,812,813,814,817],{},"Here is the ",[77,815,816],{},"golanci-lint.yml"," I use for my projects.",[153,819,821],{"className":155,"code":820,"language":157,"meta":158,"style":158},"run:\n   concurrency: 4\n   timeout: 3m\n   issues-exit-code: 1\n   tests: true\n   skip-dirs-use-default: true\n   modules-download-mode: readonly\n\n output:\n   format: colored-line-number\n   print-issued-lines: true\n   print-linter-name: true\n   uniq-by-line: true\n\n linters-settings:\n   errcheck:\n     check-type-assertions: true\n     check-blank: true\n   govet:\n     check-shadowing: true\n     enable-all: true\n     disable-all: false\n     disable:\n       - fieldalignment\n   unused:\n     check-exported: true\n   gocyclo:\n     min-complexity: 7\n   gocognit:\n     min-complexity: 7\n   nakedret:\n     max-func-lines: 10\n   goconst:\n     min-len: 3\n     min-occurrences: 2\n   gofmt:\n     simplify: true\n   maligned:\n     suggest-new: true\n   fieldalignment:\n     suggest-new: true\n   tagliatelle:\n     case:\n       rules:\n         json: snake\n   lll:\n     line-length: 160\n   revive:\n     ignore-generated-header: true\n     severity: warning\n     formatter: friendly\n     confidence: 0.8\n     errorCode: 0\n     warningCode: 0\n     rules:\n       - name: atomic\n       - name: blank-imports\n       - name: context-as-argument\n       - name: context-keys-type\n       - name: dot-imports\n       - name: error-return\n       - name: error-strings\n       - name: error-naming\n       - name: exported\n       - name: if-return\n       - name: increment-decrement\n       - name: var-naming\n       - name: var-declaration\n       - name: package-comments\n       - name: range\n       - name: receiver-naming\n       - name: time-naming\n       - name: unexported-return\n       - name: indent-error-flow\n       - name: errorf\n       - name: empty-block\n       - name: superfluous-else\n       - name: unused-parameter\n       - name: unreachable-code\n       - name: redefines-builtin-id\n\n linters:\n   enable:\n     - bodyclose\n     - deadcode\n     - depguard\n     - dogsled\n     - dupl\n     - errcheck\n     - exportloopref\n     - exhaustive\n     - funlen\n     - gochecknoinits\n     - goconst\n     - gocritic\n     - gocyclo\n     - gofmt\n     - goimports\n     - revive\n     - gomnd\n     - goprintffuncname\n     - gosimple\n     - govet\n     - ineffassign\n     - lll\n     - misspell\n     - nakedret\n     - noctx\n     - nolintlint\n     - rowserrcheck\n     - staticcheck\n     - structcheck\n     - stylecheck\n     - unconvert\n     - unparam\n     - unused\n     - varcheck\n     - whitespace\n   fast: false\n\n issues:\n   exclude-use-default: true\n   max-issues-per-linter: 0\n   max-same-issues: 0\n   new-from-rev: origin\u002Fmaster\n   exclude-rules:\n     - path: test\n       linters:\n         - lll\n         - dupl\n         - funlen\n         - exhaustivestruct\n         - gocognit\n         - fieldalignment\n         - scopelint\n         - testpackage\n         - paralleltest\n",[77,822,823,828,836,844,852,860,867,875,879,884,892,899,907,915,920,926,932,940,948,954,962,970,979,985,994,1000,1008,1014,1023,1029,1036,1042,1051,1057,1066,1075,1081,1089,1095,1103,1109,1116,1122,1128,1134,1143,1149,1158,1164,1172,1181,1190,1199,1208,1216,1222,1233,1243,1253,1263,1273,1283,1293,1303,1313,1323,1333,1343,1353,1363,1373,1383,1393,1403,1413,1423,1433,1443,1453,1463,1473,1478,1483,1489,1498,1506,1514,1522,1530,1537,1545,1553,1561,1569,1577,1585,1593,1601,1609,1617,1625,1633,1641,1649,1657,1665,1673,1681,1689,1697,1705,1713,1721,1729,1737,1745,1753,1761,1769,1777,1782,1788,1796,1804,1812,1821,1827,1838,1844,1852,1859,1866,1874,1882,1889,1897,1905],{"__ignoreMap":158},[162,824,825],{"class":164,"line":165},[162,826,827],{"class":175},"run:\n",[162,829,830,833],{"class":164,"line":172},[162,831,832],{"class":175},"   concurrency:",[162,834,835],{"class":179}," 4\n",[162,837,838,841],{"class":164,"line":266},[162,839,840],{"class":175},"   timeout:",[162,842,843],{"class":183}," 3m\n",[162,845,846,849],{"class":164,"line":273},[162,847,848],{"class":175},"   issues-exit-code:",[162,850,851],{"class":179}," 1\n",[162,853,854,857],{"class":164,"line":279},[162,855,856],{"class":175},"   tests:",[162,858,859],{"class":179}," true\n",[162,861,862,865],{"class":164,"line":523},[162,863,864],{"class":175},"   skip-dirs-use-default:",[162,866,859],{"class":179},[162,868,869,872],{"class":164,"line":567},[162,870,871],{"class":175},"   modules-download-mode:",[162,873,874],{"class":183}," readonly\n",[162,876,877],{"class":164,"line":584},[162,878,270],{"emptyLinePlaceholder":269},[162,880,881],{"class":164,"line":612},[162,882,883],{"class":175}," output:\n",[162,885,886,889],{"class":164,"line":662},[162,887,888],{"class":175},"   format:",[162,890,891],{"class":183}," colored-line-number\n",[162,893,894,897],{"class":164,"line":683},[162,895,896],{"class":175},"   print-issued-lines:",[162,898,859],{"class":179},[162,900,902,905],{"class":164,"line":901},12,[162,903,904],{"class":175},"   print-linter-name:",[162,906,859],{"class":179},[162,908,910,913],{"class":164,"line":909},13,[162,911,912],{"class":175},"   uniq-by-line:",[162,914,859],{"class":179},[162,916,918],{"class":164,"line":917},14,[162,919,270],{"emptyLinePlaceholder":269},[162,921,923],{"class":164,"line":922},15,[162,924,925],{"class":175}," linters-settings:\n",[162,927,929],{"class":164,"line":928},16,[162,930,931],{"class":175},"   errcheck:\n",[162,933,935,938],{"class":164,"line":934},17,[162,936,937],{"class":175},"     check-type-assertions:",[162,939,859],{"class":179},[162,941,943,946],{"class":164,"line":942},18,[162,944,945],{"class":175},"     check-blank:",[162,947,859],{"class":179},[162,949,951],{"class":164,"line":950},19,[162,952,953],{"class":175},"   govet:\n",[162,955,957,960],{"class":164,"line":956},20,[162,958,959],{"class":175},"     check-shadowing:",[162,961,859],{"class":179},[162,963,965,968],{"class":164,"line":964},21,[162,966,967],{"class":175},"     enable-all:",[162,969,859],{"class":179},[162,971,973,976],{"class":164,"line":972},22,[162,974,975],{"class":175},"     disable-all:",[162,977,978],{"class":179}," false\n",[162,980,982],{"class":164,"line":981},23,[162,983,984],{"class":175},"     disable:\n",[162,986,988,991],{"class":164,"line":987},24,[162,989,990],{"class":175},"       -",[162,992,993],{"class":183}," fieldalignment\n",[162,995,997],{"class":164,"line":996},25,[162,998,999],{"class":175},"   unused:\n",[162,1001,1003,1006],{"class":164,"line":1002},26,[162,1004,1005],{"class":175},"     check-exported:",[162,1007,859],{"class":179},[162,1009,1011],{"class":164,"line":1010},27,[162,1012,1013],{"class":175},"   gocyclo:\n",[162,1015,1017,1020],{"class":164,"line":1016},28,[162,1018,1019],{"class":175},"     min-complexity:",[162,1021,1022],{"class":179}," 7\n",[162,1024,1026],{"class":164,"line":1025},29,[162,1027,1028],{"class":175},"   gocognit:\n",[162,1030,1032,1034],{"class":164,"line":1031},30,[162,1033,1019],{"class":175},[162,1035,1022],{"class":179},[162,1037,1039],{"class":164,"line":1038},31,[162,1040,1041],{"class":175},"   nakedret:\n",[162,1043,1045,1048],{"class":164,"line":1044},32,[162,1046,1047],{"class":175},"     max-func-lines:",[162,1049,1050],{"class":179}," 10\n",[162,1052,1054],{"class":164,"line":1053},33,[162,1055,1056],{"class":175},"   goconst:\n",[162,1058,1060,1063],{"class":164,"line":1059},34,[162,1061,1062],{"class":175},"     min-len:",[162,1064,1065],{"class":179}," 3\n",[162,1067,1069,1072],{"class":164,"line":1068},35,[162,1070,1071],{"class":175},"     min-occurrences:",[162,1073,1074],{"class":179}," 2\n",[162,1076,1078],{"class":164,"line":1077},36,[162,1079,1080],{"class":175},"   gofmt:\n",[162,1082,1084,1087],{"class":164,"line":1083},37,[162,1085,1086],{"class":175},"     simplify:",[162,1088,859],{"class":179},[162,1090,1092],{"class":164,"line":1091},38,[162,1093,1094],{"class":175},"   maligned:\n",[162,1096,1098,1101],{"class":164,"line":1097},39,[162,1099,1100],{"class":175},"     suggest-new:",[162,1102,859],{"class":179},[162,1104,1106],{"class":164,"line":1105},40,[162,1107,1108],{"class":175},"   fieldalignment:\n",[162,1110,1112,1114],{"class":164,"line":1111},41,[162,1113,1100],{"class":175},[162,1115,859],{"class":179},[162,1117,1119],{"class":164,"line":1118},42,[162,1120,1121],{"class":175},"   tagliatelle:\n",[162,1123,1125],{"class":164,"line":1124},43,[162,1126,1127],{"class":203},"     case:\n",[162,1129,1131],{"class":164,"line":1130},44,[162,1132,1133],{"class":175},"       rules:\n",[162,1135,1137,1140],{"class":164,"line":1136},45,[162,1138,1139],{"class":175},"         json:",[162,1141,1142],{"class":183}," snake\n",[162,1144,1146],{"class":164,"line":1145},46,[162,1147,1148],{"class":175},"   lll:\n",[162,1150,1152,1155],{"class":164,"line":1151},47,[162,1153,1154],{"class":175},"     line-length:",[162,1156,1157],{"class":179}," 160\n",[162,1159,1161],{"class":164,"line":1160},48,[162,1162,1163],{"class":175},"   revive:\n",[162,1165,1167,1170],{"class":164,"line":1166},49,[162,1168,1169],{"class":175},"     ignore-generated-header:",[162,1171,859],{"class":179},[162,1173,1175,1178],{"class":164,"line":1174},50,[162,1176,1177],{"class":175},"     severity:",[162,1179,1180],{"class":183}," warning\n",[162,1182,1184,1187],{"class":164,"line":1183},51,[162,1185,1186],{"class":175},"     formatter:",[162,1188,1189],{"class":183}," friendly\n",[162,1191,1193,1196],{"class":164,"line":1192},52,[162,1194,1195],{"class":175},"     confidence:",[162,1197,1198],{"class":179}," 0.8\n",[162,1200,1202,1205],{"class":164,"line":1201},53,[162,1203,1204],{"class":175},"     errorCode:",[162,1206,1207],{"class":179}," 0\n",[162,1209,1211,1214],{"class":164,"line":1210},54,[162,1212,1213],{"class":175},"     warningCode:",[162,1215,1207],{"class":179},[162,1217,1219],{"class":164,"line":1218},55,[162,1220,1221],{"class":175},"     rules:\n",[162,1223,1225,1227,1230],{"class":164,"line":1224},56,[162,1226,990],{"class":175},[162,1228,1229],{"class":183}," name:",[162,1231,1232],{"class":183}," atomic\n",[162,1234,1236,1238,1240],{"class":164,"line":1235},57,[162,1237,990],{"class":175},[162,1239,1229],{"class":183},[162,1241,1242],{"class":183}," blank-imports\n",[162,1244,1246,1248,1250],{"class":164,"line":1245},58,[162,1247,990],{"class":175},[162,1249,1229],{"class":183},[162,1251,1252],{"class":183}," context-as-argument\n",[162,1254,1256,1258,1260],{"class":164,"line":1255},59,[162,1257,990],{"class":175},[162,1259,1229],{"class":183},[162,1261,1262],{"class":183}," context-keys-type\n",[162,1264,1266,1268,1270],{"class":164,"line":1265},60,[162,1267,990],{"class":175},[162,1269,1229],{"class":183},[162,1271,1272],{"class":183}," dot-imports\n",[162,1274,1276,1278,1280],{"class":164,"line":1275},61,[162,1277,990],{"class":175},[162,1279,1229],{"class":183},[162,1281,1282],{"class":183}," error-return\n",[162,1284,1286,1288,1290],{"class":164,"line":1285},62,[162,1287,990],{"class":175},[162,1289,1229],{"class":183},[162,1291,1292],{"class":183}," error-strings\n",[162,1294,1296,1298,1300],{"class":164,"line":1295},63,[162,1297,990],{"class":175},[162,1299,1229],{"class":183},[162,1301,1302],{"class":183}," error-naming\n",[162,1304,1306,1308,1310],{"class":164,"line":1305},64,[162,1307,990],{"class":175},[162,1309,1229],{"class":183},[162,1311,1312],{"class":183}," exported\n",[162,1314,1316,1318,1320],{"class":164,"line":1315},65,[162,1317,990],{"class":175},[162,1319,1229],{"class":183},[162,1321,1322],{"class":183}," if-return\n",[162,1324,1326,1328,1330],{"class":164,"line":1325},66,[162,1327,990],{"class":175},[162,1329,1229],{"class":183},[162,1331,1332],{"class":183}," increment-decrement\n",[162,1334,1336,1338,1340],{"class":164,"line":1335},67,[162,1337,990],{"class":175},[162,1339,1229],{"class":183},[162,1341,1342],{"class":183}," var-naming\n",[162,1344,1346,1348,1350],{"class":164,"line":1345},68,[162,1347,990],{"class":175},[162,1349,1229],{"class":183},[162,1351,1352],{"class":183}," var-declaration\n",[162,1354,1356,1358,1360],{"class":164,"line":1355},69,[162,1357,990],{"class":175},[162,1359,1229],{"class":183},[162,1361,1362],{"class":183}," package-comments\n",[162,1364,1366,1368,1370],{"class":164,"line":1365},70,[162,1367,990],{"class":175},[162,1369,1229],{"class":183},[162,1371,1372],{"class":183}," range\n",[162,1374,1376,1378,1380],{"class":164,"line":1375},71,[162,1377,990],{"class":175},[162,1379,1229],{"class":183},[162,1381,1382],{"class":183}," receiver-naming\n",[162,1384,1386,1388,1390],{"class":164,"line":1385},72,[162,1387,990],{"class":175},[162,1389,1229],{"class":183},[162,1391,1392],{"class":183}," time-naming\n",[162,1394,1396,1398,1400],{"class":164,"line":1395},73,[162,1397,990],{"class":175},[162,1399,1229],{"class":183},[162,1401,1402],{"class":183}," unexported-return\n",[162,1404,1406,1408,1410],{"class":164,"line":1405},74,[162,1407,990],{"class":175},[162,1409,1229],{"class":183},[162,1411,1412],{"class":183}," indent-error-flow\n",[162,1414,1416,1418,1420],{"class":164,"line":1415},75,[162,1417,990],{"class":175},[162,1419,1229],{"class":183},[162,1421,1422],{"class":183}," errorf\n",[162,1424,1426,1428,1430],{"class":164,"line":1425},76,[162,1427,990],{"class":175},[162,1429,1229],{"class":183},[162,1431,1432],{"class":183}," empty-block\n",[162,1434,1436,1438,1440],{"class":164,"line":1435},77,[162,1437,990],{"class":175},[162,1439,1229],{"class":183},[162,1441,1442],{"class":183}," superfluous-else\n",[162,1444,1446,1448,1450],{"class":164,"line":1445},78,[162,1447,990],{"class":175},[162,1449,1229],{"class":183},[162,1451,1452],{"class":183}," unused-parameter\n",[162,1454,1456,1458,1460],{"class":164,"line":1455},79,[162,1457,990],{"class":175},[162,1459,1229],{"class":183},[162,1461,1462],{"class":183}," unreachable-code\n",[162,1464,1466,1468,1470],{"class":164,"line":1465},80,[162,1467,990],{"class":175},[162,1469,1229],{"class":183},[162,1471,1472],{"class":183}," redefines-builtin-id\n",[162,1474,1476],{"class":164,"line":1475},81,[162,1477,270],{"emptyLinePlaceholder":269},[162,1479,1481],{"class":164,"line":1480},82,[162,1482,339],{"class":175},[162,1484,1486],{"class":164,"line":1485},83,[162,1487,1488],{"class":175},"   enable:\n",[162,1490,1492,1495],{"class":164,"line":1491},84,[162,1493,1494],{"class":175},"     -",[162,1496,1497],{"class":183}," bodyclose\n",[162,1499,1501,1503],{"class":164,"line":1500},85,[162,1502,1494],{"class":175},[162,1504,1505],{"class":183}," deadcode\n",[162,1507,1509,1511],{"class":164,"line":1508},86,[162,1510,1494],{"class":175},[162,1512,1513],{"class":183}," depguard\n",[162,1515,1517,1519],{"class":164,"line":1516},87,[162,1518,1494],{"class":175},[162,1520,1521],{"class":183}," dogsled\n",[162,1523,1525,1527],{"class":164,"line":1524},88,[162,1526,1494],{"class":175},[162,1528,1529],{"class":183}," dupl\n",[162,1531,1533,1535],{"class":164,"line":1532},89,[162,1534,1494],{"class":175},[162,1536,744],{"class":183},[162,1538,1540,1542],{"class":164,"line":1539},90,[162,1541,1494],{"class":175},[162,1543,1544],{"class":183}," exportloopref\n",[162,1546,1548,1550],{"class":164,"line":1547},91,[162,1549,1494],{"class":175},[162,1551,1552],{"class":183}," exhaustive\n",[162,1554,1556,1558],{"class":164,"line":1555},92,[162,1557,1494],{"class":175},[162,1559,1560],{"class":183}," funlen\n",[162,1562,1564,1566],{"class":164,"line":1563},93,[162,1565,1494],{"class":175},[162,1567,1568],{"class":183}," gochecknoinits\n",[162,1570,1572,1574],{"class":164,"line":1571},94,[162,1573,1494],{"class":175},[162,1575,1576],{"class":183}," goconst\n",[162,1578,1580,1582],{"class":164,"line":1579},95,[162,1581,1494],{"class":175},[162,1583,1584],{"class":183}," gocritic\n",[162,1586,1588,1590],{"class":164,"line":1587},96,[162,1589,1494],{"class":175},[162,1591,1592],{"class":183}," gocyclo\n",[162,1594,1596,1598],{"class":164,"line":1595},97,[162,1597,1494],{"class":175},[162,1599,1600],{"class":183}," gofmt\n",[162,1602,1604,1606],{"class":164,"line":1603},98,[162,1605,1494],{"class":175},[162,1607,1608],{"class":183}," goimports\n",[162,1610,1612,1614],{"class":164,"line":1611},99,[162,1613,1494],{"class":175},[162,1615,1616],{"class":183}," revive\n",[162,1618,1620,1622],{"class":164,"line":1619},100,[162,1621,1494],{"class":175},[162,1623,1624],{"class":183}," gomnd\n",[162,1626,1628,1630],{"class":164,"line":1627},101,[162,1629,1494],{"class":175},[162,1631,1632],{"class":183}," goprintffuncname\n",[162,1634,1636,1638],{"class":164,"line":1635},102,[162,1637,1494],{"class":175},[162,1639,1640],{"class":183}," gosimple\n",[162,1642,1644,1646],{"class":164,"line":1643},103,[162,1645,1494],{"class":175},[162,1647,1648],{"class":183}," govet\n",[162,1650,1652,1654],{"class":164,"line":1651},104,[162,1653,1494],{"class":175},[162,1655,1656],{"class":183}," ineffassign\n",[162,1658,1660,1662],{"class":164,"line":1659},105,[162,1661,1494],{"class":175},[162,1663,1664],{"class":183}," lll\n",[162,1666,1668,1670],{"class":164,"line":1667},106,[162,1669,1494],{"class":175},[162,1671,1672],{"class":183}," misspell\n",[162,1674,1676,1678],{"class":164,"line":1675},107,[162,1677,1494],{"class":175},[162,1679,1680],{"class":183}," nakedret\n",[162,1682,1684,1686],{"class":164,"line":1683},108,[162,1685,1494],{"class":175},[162,1687,1688],{"class":183}," noctx\n",[162,1690,1692,1694],{"class":164,"line":1691},109,[162,1693,1494],{"class":175},[162,1695,1696],{"class":183}," nolintlint\n",[162,1698,1700,1702],{"class":164,"line":1699},110,[162,1701,1494],{"class":175},[162,1703,1704],{"class":183}," rowserrcheck\n",[162,1706,1708,1710],{"class":164,"line":1707},111,[162,1709,1494],{"class":175},[162,1711,1712],{"class":183}," staticcheck\n",[162,1714,1716,1718],{"class":164,"line":1715},112,[162,1717,1494],{"class":175},[162,1719,1720],{"class":183}," structcheck\n",[162,1722,1724,1726],{"class":164,"line":1723},113,[162,1725,1494],{"class":175},[162,1727,1728],{"class":183}," stylecheck\n",[162,1730,1732,1734],{"class":164,"line":1731},114,[162,1733,1494],{"class":175},[162,1735,1736],{"class":183}," unconvert\n",[162,1738,1740,1742],{"class":164,"line":1739},115,[162,1741,1494],{"class":175},[162,1743,1744],{"class":183}," unparam\n",[162,1746,1748,1750],{"class":164,"line":1747},116,[162,1749,1494],{"class":175},[162,1751,1752],{"class":183}," unused\n",[162,1754,1756,1758],{"class":164,"line":1755},117,[162,1757,1494],{"class":175},[162,1759,1760],{"class":183}," varcheck\n",[162,1762,1764,1766],{"class":164,"line":1763},118,[162,1765,1494],{"class":175},[162,1767,1768],{"class":183}," whitespace\n",[162,1770,1772,1775],{"class":164,"line":1771},119,[162,1773,1774],{"class":175},"   fast:",[162,1776,978],{"class":179},[162,1778,1780],{"class":164,"line":1779},120,[162,1781,270],{"emptyLinePlaceholder":269},[162,1783,1785],{"class":164,"line":1784},121,[162,1786,1787],{"class":175}," issues:\n",[162,1789,1791,1794],{"class":164,"line":1790},122,[162,1792,1793],{"class":175},"   exclude-use-default:",[162,1795,859],{"class":179},[162,1797,1799,1802],{"class":164,"line":1798},123,[162,1800,1801],{"class":175},"   max-issues-per-linter:",[162,1803,1207],{"class":179},[162,1805,1807,1810],{"class":164,"line":1806},124,[162,1808,1809],{"class":175},"   max-same-issues:",[162,1811,1207],{"class":179},[162,1813,1815,1818],{"class":164,"line":1814},125,[162,1816,1817],{"class":175},"   new-from-rev:",[162,1819,1820],{"class":183}," origin\u002Fmaster\n",[162,1822,1824],{"class":164,"line":1823},126,[162,1825,1826],{"class":175},"   exclude-rules:\n",[162,1828,1830,1832,1835],{"class":164,"line":1829},127,[162,1831,1494],{"class":175},[162,1833,1834],{"class":183}," path:",[162,1836,1837],{"class":183}," test\n",[162,1839,1841],{"class":164,"line":1840},128,[162,1842,1843],{"class":175},"       linters:\n",[162,1845,1847,1850],{"class":164,"line":1846},129,[162,1848,1849],{"class":175},"         -",[162,1851,1664],{"class":183},[162,1853,1855,1857],{"class":164,"line":1854},130,[162,1856,1849],{"class":175},[162,1858,1529],{"class":183},[162,1860,1862,1864],{"class":164,"line":1861},131,[162,1863,1849],{"class":175},[162,1865,1560],{"class":183},[162,1867,1869,1871],{"class":164,"line":1868},132,[162,1870,1849],{"class":175},[162,1872,1873],{"class":183}," exhaustivestruct\n",[162,1875,1877,1879],{"class":164,"line":1876},133,[162,1878,1849],{"class":175},[162,1880,1881],{"class":183}," gocognit\n",[162,1883,1885,1887],{"class":164,"line":1884},134,[162,1886,1849],{"class":175},[162,1888,993],{"class":183},[162,1890,1892,1894],{"class":164,"line":1891},135,[162,1893,1849],{"class":175},[162,1895,1896],{"class":183}," scopelint\n",[162,1898,1900,1902],{"class":164,"line":1899},136,[162,1901,1849],{"class":175},[162,1903,1904],{"class":183}," testpackage\n",[162,1906,1908,1910],{"class":164,"line":1907},137,[162,1909,1849],{"class":175},[162,1911,1912],{"class":183}," paralleltest\n",[11,1914,1915,1916,1919,1920,1925],{},"That's it. Run ",[77,1917,1918],{},"golangci-lint run"," from root folder of your project. A good idea is to add this as a part of your CI pipeline. You can use the ",[89,1921,1924],{"href":1922,"rel":1923},"https:\u002F\u002Fgithub.com\u002Fgolangci\u002Fgolangci-lint-action",[93],"golangci github action"," for projects hosted on github.",[67,1927],{},[38,1929,1931],{"id":1930},"excluding-linting-in-go-code","Excluding linting in Go code",[11,1933,1934,1936,1937,1940],{},[77,1935,136],{}," provides a ",[77,1938,1939],{},"\u002F\u002Fnolint"," directive that can be used in code to ignore linting for a particular line\u002Fblock or file.",[153,1942,1945],{"className":1943,"code":1944,"language":207,"meta":158,"style":158},"language-go shiki shiki-themes github-light github-dark","\u002F\u002F exclude a line\n\u002F\u002F here we are ignoring this line for golint linter\nvar userLastName string \u002F\u002Fnolint:golint\n\n\u002F\u002F Here we are excluding this function block for all linters.\n\u002F\u002Fnolint\nfunction solve() {\n    ...\n}\n\n\u002F\u002F to exclude the complete file use nolint on top of file\n\u002F\u002Fnolint\npkg myservice\n",[77,1946,1947,1952,1957,1971,1975,1980,1985,1996,2001,2006,2010,2015,2019],{"__ignoreMap":158},[162,1948,1949],{"class":164,"line":165},[162,1950,1951],{"class":168},"\u002F\u002F exclude a line\n",[162,1953,1954],{"class":164,"line":172},[162,1955,1956],{"class":168},"\u002F\u002F here we are ignoring this line for golint linter\n",[162,1958,1959,1962,1965,1968],{"class":164,"line":266},[162,1960,1961],{"class":187},"var",[162,1963,1964],{"class":203}," userLastName ",[162,1966,1967],{"class":187},"string",[162,1969,1970],{"class":168}," \u002F\u002Fnolint:golint\n",[162,1972,1973],{"class":164,"line":273},[162,1974,270],{"emptyLinePlaceholder":269},[162,1976,1977],{"class":164,"line":279},[162,1978,1979],{"class":168},"\u002F\u002F Here we are excluding this function block for all linters.\n",[162,1981,1982],{"class":164,"line":523},[162,1983,1984],{"class":168},"\u002F\u002Fnolint\n",[162,1986,1987,1990,1993],{"class":164,"line":567},[162,1988,1989],{"class":203},"function ",[162,1991,1992],{"class":175},"solve",[162,1994,1995],{"class":203},"() {\n",[162,1997,1998],{"class":164,"line":584},[162,1999,2000],{"class":187},"    ...\n",[162,2002,2003],{"class":164,"line":612},[162,2004,2005],{"class":203},"}\n",[162,2007,2008],{"class":164,"line":662},[162,2009,270],{"emptyLinePlaceholder":269},[162,2011,2012],{"class":164,"line":683},[162,2013,2014],{"class":168},"\u002F\u002F to exclude the complete file use nolint on top of file\n",[162,2016,2017],{"class":164,"line":901},[162,2018,1984],{"class":168},[162,2020,2021],{"class":164,"line":909},[162,2022,2023],{"class":203},"pkg myservice\n",[11,2025,2026],{},"Congrats! You are now ready to use linting to your Go projects. This will help you making your code less error-prone and improve overall code quality.",[15,2028,2030],{"id":2029},"resources","Resources",[97,2032,2033,2039,2045],{},[46,2034,2035],{},[89,2036,2038],{"href":134,"rel":2037},[93],"Golangci-lint",[46,2040,2041],{},[89,2042,2044],{"href":91,"rel":2043},[93],"Awesome Go Linters",[46,2046,2047],{},[89,2048,2051],{"href":2049,"rel":2050},"https:\u002F\u002Fwww.mohitkhare.com\u002Fcategories\u002Fgolang",[93],"More blogs on Golang",[38,2053,2055],{"id":2054},"books-to-learn-golang","Books to learn Golang",[97,2057,2058,2065,2072],{},[46,2059,2060],{},[89,2061,2064],{"href":2062,"rel":2063},"https:\u002F\u002Famzn.to\u002F3fYLCqz",[93],"Go Programming Language",[46,2066,2067],{},[89,2068,2071],{"href":2069,"rel":2070},"https:\u002F\u002Famzn.to\u002F3s7fWS3",[93],"Learning Go",[46,2073,2074],{},[89,2075,2078],{"href":2076,"rel":2077},"https:\u002F\u002Famzn.to\u002F3t6PM37",[93],"Go in Action",[67,2080],{},[11,2082,2083],{},"I hope you learned something new. Feel free to suggest improvements ✔️",[11,2085,2086,2087,2092],{},"I share regular updates and resources on ",[89,2088,2091],{"href":2089,"rel":2090},"https:\u002F\u002Ftwitter.com\u002Fmkfeuhrer",[93],"Twitter",". Let's connect!",[11,2094,2095],{},[33,2096,2097],{},"Keep exploring 🔎 Keep learning 🚀",[2099,2100,2101],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}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 pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}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":158,"searchDepth":172,"depth":172,"links":2103},[2104,2107,2113],{"id":17,"depth":172,"text":18,"children":2105},[2106],{"id":40,"depth":266,"text":41},{"id":71,"depth":172,"text":72,"children":2108},[2109,2110,2111,2112],{"id":140,"depth":266,"text":141},{"id":242,"depth":266,"text":243},{"id":770,"depth":266,"text":771},{"id":1930,"depth":266,"text":1931},{"id":2029,"depth":172,"text":2030,"children":2114},[2115],{"id":2054,"depth":266,"text":2055},[2117,2118],"Golang","Programming","Introduction to improving code quality using linting. Learn how to add linting in your Go projects.",false,"md","blog\u002Flinting-in-golang\u002Flinting-in-golang-card.webp","golang linter, linting golang, golangci lint, code linting golang",{},"\u002Fblog\u002Flinting-in-golang",{"title":5,"description":2119},"blog\u002Flinting-in-golang","2021-07-07","FycdqwNGhRfdp0EpBgu5WYmKDNokyzdnxMsRlBipl30",[2131,2138,2144,2152,2161,2168,2175,2182,2188,2194,2200,2206,2212,2222,2228,2235,2242,2249,2255,2262,2268,2274,2280,2286,2292,2298,2304,2310,2317,2324,2330,2336,2342,2348,2354,2360,2366,2372,2378,2384,2386,2392,2398,2405,2411,2417,2423,2430,2436,2442,2449,2456,2462,2469,2475,2482,2488,2495,2501,2507,2513,2519,2525,2531,2537,2543,2549,2555,2561,2567,2574,2580,2587,2593,2599,2605,2612,2618],{"path":2132,"title":2133,"description":2134,"categories":2135,"draft":269,"year":2137,"series":6},"\u002Fblog\u002Fai-assisted-workstation","Building an AI-Assisted Personal Workstation","How I built a personal AI workstation: markdown knowledge base, portable agent skills, handoff-driven sessions. What worked, what broke, what I would change.",[2136,2118],"Productivity","2026-08-26",{"path":2139,"title":2140,"description":2141,"categories":2142,"draft":2120,"year":2143,"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",[2117,2118],"2020-01-12",{"path":2145,"title":2146,"description":2147,"categories":2148,"draft":2120,"year":2151,"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.",[2149,2150],"Books","Life","2021-12-26",{"path":2153,"title":2154,"description":2155,"categories":2156,"draft":2120,"year":2160,"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.",[2157,2158,2159],"Side Projects","Web","Tools","2020-05-26",{"path":2162,"title":2163,"description":2164,"categories":2165,"draft":2120,"year":2167,"series":6},"\u002Fblog\u002Fcap-theorem","CAP Theorem Explained","Learn the concept and misconceptions around popular CAP theorem in system design.",[2166,2118],"System Design","2021-07-26",{"path":2169,"title":2170,"description":2171,"categories":2172,"draft":2120,"year":2174,"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.",[2173],"Engineering Principles","2020-07-20",{"path":2176,"title":2177,"description":2178,"categories":2179,"draft":2120,"year":2181,"series":6},"\u002Fblog\u002Fdark-mode","Add Dark mode to websites","Dark mode is ❤️️ Add it to your websites with little CSS and JS",[2180,2158],"Javascript","2020-07-04",{"path":2183,"title":2184,"description":2185,"categories":2186,"draft":2120,"year":2187,"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.",[2117,2118],"2020-10-09",{"path":2189,"title":2190,"description":2191,"categories":2192,"draft":2120,"year":2193,"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.",[2117,2118],"2021-05-05",{"path":2195,"title":2196,"description":2197,"categories":2198,"draft":2120,"year":2199,"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.",[2117,2118],"2021-12-18",{"path":2201,"title":2202,"description":2203,"categories":2204,"draft":2120,"year":2205,"series":6},"\u002Fblog\u002Fenvironment-variable-golang","Guide to Environment variables in Go","Learn what are environment variables and how to use them in Go",[2117,2118],"2020-08-14",{"path":2207,"title":2208,"description":2209,"categories":2210,"draft":2120,"year":2211,"series":6},"\u002Fblog\u002Ferror-handling-golang","Handle errors the right way — Golang","How to handle errors in golang to make your life easy",[2117,2118],"2020-01-30",{"path":2213,"title":2214,"description":2215,"categories":2216,"draft":269,"year":2219,"series":2220},"\u002Fblog\u002Ffile-attack-document-macros","File Attack Deep Dives, Part 3: Document Macros","How malicious VBA hides in vbaProject.bin, which AutoOpen entry points fire it, and the sandbox signals that catch it.",[2217,2218],"Security","Systems","2026-09-17",{"name":2221,"part":266},"File Attack Deep Dives",{"path":2223,"title":2224,"description":2225,"categories":2226,"draft":2120,"year":2137,"series":2227},"\u002Fblog\u002Ffile-attack-field-guide","How File-Based Attacks Land: A Detection Engineer's Field Guide","A practical taxonomy of how malware and phishing arrive as files, why classic controls miss them, and how detection should think.",[2217,2218],{"name":2221,"part":165},{"path":2229,"title":2230,"description":2231,"categories":2232,"draft":269,"year":2233,"series":2234},"\u002Fblog\u002Ffile-attack-html-smuggling","File Attack Deep Dives, Part 2: HTML Smuggling","How attackers assemble malware inside the browser with Blob URLs, and the URL and script tells that catch it.",[2217,2218],"2026-09-10",{"name":2221,"part":172},{"path":2236,"title":2237,"description":2238,"categories":2239,"draft":269,"year":2240,"series":2241},"\u002Fblog\u002Ffile-attack-lnk-iso","File Attack Deep Dives, Part 5: LNK and ISO Smuggling","How ISO containers and weaponized shortcuts bypass Mark of the Web, and the forensic fields that catch them.",[2217,2218],"2026-10-01",{"name":2221,"part":279},{"path":2243,"title":2244,"description":2245,"categories":2246,"draft":269,"year":2247,"series":2248},"\u002Fblog\u002Ffile-attack-pdf-url-actions","File Attack Deep Dives, Part 4: PDF URL Actions","How PDF OpenAction, Launch, and URI actions turn opening a document into a phishing click, and the action audit that catches them.",[2217,2218],"2026-09-24",{"name":2221,"part":273},{"path":2250,"title":2251,"description":2252,"categories":2253,"draft":2120,"year":2254,"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.",[2117,2118],"2021-03-13",{"path":2256,"title":2257,"description":2258,"categories":2259,"draft":2120,"year":2261,"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.",[2260,2118],"Git","2022-03-20",{"path":2263,"title":2264,"description":2265,"categories":2266,"draft":2120,"year":2267,"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",[2260,2118],"2023-08-24",{"path":2269,"title":2270,"description":2271,"categories":2272,"draft":2120,"year":2273,"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.",[2260,2118],"2023-10-16",{"path":2275,"title":2276,"description":2277,"categories":2278,"draft":2120,"year":2279,"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.",[2260,2118],"2020-06-18",{"path":2281,"title":2282,"description":2283,"categories":2284,"draft":2120,"year":2285,"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",[2117,2118],"2022-11-26",{"path":2287,"title":2288,"description":2289,"categories":2290,"draft":2120,"year":2291,"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.",[2117,2118],"2022-11-27",{"path":2293,"title":2294,"description":2295,"categories":2296,"draft":2120,"year":2297,"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).",[2117,2118],"2024-03-28",{"path":2299,"title":2300,"description":2301,"categories":2302,"draft":2120,"year":2303,"series":6},"\u002Fblog\u002Fgo-makefile","Ultimate Makefile for Golang","Boost your productivity and save time with ultimate Makefile for Golang projects.",[2117,2118],"2024-06-10",{"path":2305,"title":2306,"description":2307,"categories":2308,"draft":2120,"year":2309,"series":6},"\u002Fblog\u002Fgo-middleware","Mastering Middlewares in Golang","Learn about middlewares, their use cases and how to implement them in Golang applications",[2117,2118],"2022-03-13",{"path":2311,"title":2312,"description":2313,"categories":2314,"draft":2120,"year":2316,"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.",[2117,2118,2315],"Code Quality","2023-05-19",{"path":2318,"title":2319,"description":2320,"categories":2321,"draft":2120,"year":2323,"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.",[2117,2322,2118],"Database","2020-05-03",{"path":2325,"title":2326,"description":2327,"categories":2328,"draft":2120,"year":2329,"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.",[2117,2118],"2020-09-10",{"path":2331,"title":2332,"description":2333,"categories":2334,"draft":2120,"year":2335,"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.",[2166,2118],"2022-01-23",{"path":2337,"title":2338,"description":2339,"categories":2340,"draft":2120,"year":2341,"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",[2117,2118],"2022-09-12",{"path":2343,"title":2344,"description":2345,"categories":2346,"draft":2120,"year":2347,"series":6},"\u002Fblog\u002Fhexagonal-architecture","Guide to Hexagonal Architecture","Learn how to design efficient application with hexagonal architecture with practical example",[2166,2118],"2020-12-13",{"path":2349,"title":2350,"description":2351,"categories":2352,"draft":2120,"year":2353,"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.",[2158,2118],"2020-07-30",{"path":2355,"title":2356,"description":2357,"categories":2358,"draft":2120,"year":2359,"series":6},"\u002Fblog\u002Fintroduction-to-goroutines","Introduction to Goroutines","Understand the basics of concurrency and learn how to work with Goroutines in golang.",[2117,2118],"2021-04-10",{"path":2361,"title":2362,"description":2363,"categories":2364,"draft":2120,"year":2365,"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.",[2118,2322,2117],"2021-02-13",{"path":2367,"title":2368,"description":2369,"categories":2370,"draft":2120,"year":2371,"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.",[2118,2158],"2021-11-20",{"path":2373,"title":2374,"description":2375,"categories":2376,"draft":2120,"year":2377,"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",[2150,2149],"2022-04-09",{"path":2379,"title":2380,"description":2381,"categories":2382,"draft":2120,"year":2383,"series":6},"\u002Fblog\u002Flearn-unlearn-relearn","Learn - Unlearn - Relearn","Unlearning things to learn new is the way to grow. Discover how to do that!",[2136,2150],"2020-09-25",{"path":2125,"title":5,"description":2119,"categories":2385,"draft":2120,"year":2128,"series":6},[2117,2118],{"path":2387,"title":2388,"description":2389,"categories":2390,"draft":2120,"year":2391,"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.",[2166,2118],"2021-05-29",{"path":2393,"title":2394,"description":2395,"categories":2396,"draft":2120,"year":2397,"series":6},"\u002Fblog\u002Fmaking-decisions-the-right-way","Making Decisions: The right way","Decisions are hard! Learn how to make the right decisions always",[2136,2150],"2020-06-07",{"path":2399,"title":2400,"description":2401,"categories":2402,"draft":2120,"year":2404,"series":6},"\u002Fblog\u002Fmanage-logs-with-logrotate","Using Logrotate to manage logs","Learn how to use logrotate system utility to manage logs with example",[2403,2118],"Linux","2020-09-08",{"path":2406,"title":2407,"description":2408,"categories":2409,"draft":2120,"year":2410,"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.",[2117,2118],"2020-03-31",{"path":2412,"title":2413,"description":2414,"categories":2415,"draft":2120,"year":2416,"series":6},"\u002Fblog\u002Fnotes-almanack-naval","Book Notes : Almanack of Naval Ravikant","My notes\u002Fhighlights from Almanack of Naval Ravikant book by Eric Jorgenson",[2149,2150],"2020-10-17",{"path":2418,"title":2419,"description":2420,"categories":2421,"draft":2120,"year":2422,"series":6},"\u002Fblog\u002Fnotes-anything-you-want","Book Notes : Anything you want","My notes\u002Fhighlights from Anything you want book by Derek Sivers",[2149,2150],"2021-09-25",{"path":2424,"title":2425,"description":2426,"categories":2427,"draft":2120,"year":2429,"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.",[2149,2428],"Startups","2020-11-03",{"path":2431,"title":2432,"description":2433,"categories":2434,"draft":2120,"year":2435,"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",[2149,2150],"2020-09-16",{"path":2437,"title":2438,"description":2439,"categories":2440,"draft":2120,"year":2441,"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",[2149,2428],"2020-01-07",{"path":2443,"title":2444,"description":2445,"categories":2446,"draft":2120,"year":2448,"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.",[2149,2447],"Entrepreneurship","2022-07-02",{"path":2450,"title":2451,"description":2452,"categories":2453,"draft":2120,"year":2455,"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.",[2149,2454],"Personal Finance","2021-02-26",{"path":2457,"title":2458,"description":2459,"categories":2460,"draft":2120,"year":2461,"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.",[2149,2428],"2020-04-26",{"path":2463,"title":2464,"description":2465,"categories":2466,"draft":2120,"year":2468,"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.",[2149,2467],"Design","2020-05-09",{"path":2470,"title":2471,"description":2472,"categories":2473,"draft":2120,"year":2474,"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.",[2149,2428],"2021-04-14",{"path":2476,"title":2477,"description":2478,"categories":2479,"draft":2120,"year":2481,"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.",[2480,2136],"Career","2023-03-05",{"path":2483,"title":2484,"description":2485,"categories":2486,"draft":2120,"year":2487,"series":6},"\u002Fblog\u002Fpersonal-okrs","Personal OKRs for Success","Why one should set personal OKRs and how to achieve success with them",[2136,2150],"2020-06-27",{"path":2489,"title":2490,"description":2491,"categories":2492,"draft":2120,"year":2494,"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.",[2150,2493],"Poker","2020-06-13",{"path":2496,"title":2497,"description":2498,"categories":2499,"draft":2120,"year":2500,"series":6},"\u002Fblog\u002Fpomodoro","Get work done: The Pomo Way","Learn to focus and get productive by following the Pomodoro Technique",[2136],"2020-10-24",{"path":2502,"title":2503,"description":2504,"categories":2505,"draft":2120,"year":2506,"series":6},"\u002Fblog\u002Fpostgres-constraints","Postgres Constraints","Constraints are line of defense for database. Explore various types of constrainsts in postgres",[2322,2118],"2020-11-07",{"path":2508,"title":2509,"description":2510,"categories":2511,"draft":2120,"year":2512,"series":6},"\u002Fblog\u002Fppf-explained","PPF Explained","Learn basics about Public Provident Fund and why you should invest",[2150,2454],"2020-12-24",{"path":2514,"title":2515,"description":2516,"categories":2517,"draft":2120,"year":2518,"series":6},"\u002Fblog\u002Fproductivity-chrome-extensions","Boost Productivity with Chrome Extensions","Utitizing chrome extensions to boost your productivity!",[2136,2159,2158],"2020-04-24",{"path":2520,"title":2521,"description":2522,"categories":2523,"draft":2120,"year":2524,"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.",[2136,2118],"2020-03-12",{"path":2526,"title":2527,"description":2528,"categories":2529,"draft":2120,"year":2530,"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.",[2149,2150],"2020-04-04",{"path":2532,"title":2533,"description":2534,"categories":2535,"draft":2120,"year":2536,"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.",[2166,2118],"2021-10-03",{"path":2538,"title":2539,"description":2540,"categories":2541,"draft":2120,"year":2542,"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.",[2117,2118],"2019-11-21",{"path":2544,"title":2545,"description":2546,"categories":2547,"draft":2120,"year":2548,"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.",[2117,2322,2118],"2020-02-25",{"path":2550,"title":2551,"description":2552,"categories":2553,"draft":2120,"year":2554,"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.",[2173],"2020-07-17",{"path":2556,"title":2557,"description":2558,"categories":2559,"draft":2120,"year":2560,"series":6},"\u002Fblog\u002Fstack-in-golang","Implement Stack in Golang","Learn how to implement stack data structure in Golang (Full code)",[2117,2118],"2020-09-14",{"path":2562,"title":2563,"description":2564,"categories":2565,"draft":2120,"year":2566,"series":6},"\u002Fblog\u002Fstart-oss-today","Start your Open Source journey today","Start your OSS journey with intro to GIT. Participate in Hacktoberfest!",[2260,2118],"2020-09-19",{"path":2568,"title":2569,"description":2570,"categories":2571,"draft":2120,"year":2573,"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.",[2118,2572],"Frontend","2021-02-05",{"path":2575,"title":2576,"description":2577,"categories":2578,"draft":2120,"year":2579,"series":6},"\u002Fblog\u002Fterm-insurance","Term insurance Simplified","Everything you need to know before you buy a term insurance.",[2150,2454],"2020-11-29",{"path":2581,"title":2582,"description":2583,"categories":2584,"draft":2120,"year":2586,"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",[2403,2585,2118],"Terminal","2020-09-06",{"path":2588,"title":2589,"description":2590,"categories":2591,"draft":2120,"year":2592,"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.",[2149,2150],"2020-05-19",{"path":2594,"title":2595,"description":2596,"categories":2597,"draft":2120,"year":2598,"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.",[2117,2322,2118],"2020-03-18",{"path":2600,"title":2601,"description":2602,"categories":2603,"draft":2120,"year":2604,"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.",[2117,2118],"2022-05-31",{"path":2606,"title":2607,"description":2608,"categories":2609,"draft":2120,"year":2611,"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",[2150,2610],"Tech","2024-06-01",{"path":2613,"title":2614,"description":2615,"categories":2616,"draft":2120,"year":2617,"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!",[2150],"2020-12-31",{"path":2619,"title":2620,"description":2621,"categories":2622,"draft":2120,"year":2623,"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!",[2150],"2021-12-31",1788773187622]