[{"data":1,"prerenderedAt":1045},["ShallowReactive",2],{"navigation_docs":3,"-projects-cli-task-manager":377,"-projects-cli-task-manager-surround":1040},[4,39,114,144,184,244,293,362],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15,20,25,30,35],{"title":11,"path":12,"stem":13,"icon":14},"Learning Path","\u002Fgetting-started\u002Flearning-path","1.getting-started\u002F1.learning-path","i-lucide-map",{"title":16,"path":17,"stem":18,"icon":19},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F2.introduction","i-lucide-house",{"title":21,"path":22,"stem":23,"icon":24},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F3.installation","i-lucide-download",{"title":26,"path":27,"stem":28,"icon":29},"Your First Program","\u002Fgetting-started\u002Ffirst-program","1.getting-started\u002F4.first-program","i-lucide-play",{"title":31,"path":32,"stem":33,"icon":34},"Modules and Dependencies","\u002Fgetting-started\u002Fmodules-and-dependencies","1.getting-started\u002F5.modules-and-dependencies","i-lucide-package-open",{"title":36,"path":37,"stem":38,"icon":34},"Advanced Modules","\u002Fgetting-started\u002Fadvanced-modules","1.getting-started\u002F6.advanced-modules",{"title":40,"path":41,"stem":42,"children":43,"page":6},"Fundamentals","\u002Ffundamentals","2.fundamentals",[44,49,54,59,64,69,74,79,84,89,94,99,104,109],{"title":45,"path":46,"stem":47,"icon":48},"Program Structure","\u002Ffundamentals\u002Fprogram-structure","2.fundamentals\u002F1.program-structure","i-lucide-workflow",{"title":50,"path":51,"stem":52,"icon":53},"Structs and Methods","\u002Ffundamentals\u002Fstructs-and-methods","2.fundamentals\u002F10.structs-and-methods","i-lucide-box",{"title":55,"path":56,"stem":57,"icon":58},"Interfaces","\u002Ffundamentals\u002Finterfaces","2.fundamentals\u002F11.interfaces","i-lucide-plug",{"title":60,"path":61,"stem":62,"icon":63},"Error Handling","\u002Ffundamentals\u002Ferrors","2.fundamentals\u002F12.errors","i-lucide-triangle-alert",{"title":65,"path":66,"stem":67,"icon":68},"Defined Types and Type Aliases","\u002Ffundamentals\u002Fdefined-types","2.fundamentals\u002F13.defined-types","i-lucide-tags",{"title":70,"path":71,"stem":72,"icon":73},"Generics","\u002Ffundamentals\u002Fgenerics","2.fundamentals\u002F14.generics","i-lucide-blocks",{"title":75,"path":76,"stem":77,"icon":78},"Project Structure","\u002Ffundamentals\u002Fproject-structure","2.fundamentals\u002F2.project-structure","i-lucide-folder-tree",{"title":80,"path":81,"stem":82,"icon":83},"Project Layout","\u002Ffundamentals\u002Fproject-layout","2.fundamentals\u002F3.project-layout","i-lucide-layout",{"title":85,"path":86,"stem":87,"icon":88},"Variables and Data Types","\u002Ffundamentals\u002Fvariables-and-types","2.fundamentals\u002F4.variables-and-types","i-lucide-variable",{"title":90,"path":91,"stem":92,"icon":93},"Functions","\u002Ffundamentals\u002Ffunctions","2.fundamentals\u002F5.functions","i-lucide-braces",{"title":95,"path":96,"stem":97,"icon":98},"Control Statements","\u002Ffundamentals\u002Fcontrol-statements","2.fundamentals\u002F6.control-statements","i-lucide-git-branch",{"title":100,"path":101,"stem":102,"icon":103},"Pointers","\u002Ffundamentals\u002Fpointers","2.fundamentals\u002F7.pointers","i-lucide-mouse-pointer-2",{"title":105,"path":106,"stem":107,"icon":108},"Arrays and Slices","\u002Ffundamentals\u002Farrays-and-slices","2.fundamentals\u002F8.arrays-and-slices","i-lucide-list",{"title":110,"path":111,"stem":112,"icon":113},"Maps","\u002Ffundamentals\u002Fmaps","2.fundamentals\u002F9.maps","i-lucide-table-properties",{"title":115,"path":116,"stem":117,"children":118,"page":6},"Concurrency","\u002Fconcurrency","3.concurrency",[119,124,129,134,139],{"title":120,"path":121,"stem":122,"icon":123},"Concurrency Model","\u002Fconcurrency\u002Fconcurrency-model","3.concurrency\u002F1.concurrency-model","i-lucide-network",{"title":125,"path":126,"stem":127,"icon":128},"Goroutines","\u002Fconcurrency\u002Fgoroutines","3.concurrency\u002F2.goroutines","i-lucide-git-fork",{"title":130,"path":131,"stem":132,"icon":133},"Channels","\u002Fconcurrency\u002Fchannels","3.concurrency\u002F3.channels","i-lucide-arrow-left-right",{"title":135,"path":136,"stem":137,"icon":138},"Select and Cancellation","\u002Fconcurrency\u002Fselect-and-cancellation","3.concurrency\u002F4.select-and-cancellation","i-lucide-circle-stop",{"title":140,"path":141,"stem":142,"icon":143},"Synchronization","\u002Fconcurrency\u002Fsynchronization","3.concurrency\u002F5.synchronization","i-lucide-lock-keyhole",{"title":145,"path":146,"stem":147,"children":148,"page":6},"Standard Library","\u002Fstandard-library","4.standard-library",[149,154,159,164,169,174,179],{"title":150,"path":151,"stem":152,"icon":153},"Standard Library Overview","\u002Fstandard-library\u002Foverview","4.standard-library\u002F1.overview","i-lucide-library",{"title":155,"path":156,"stem":157,"icon":158},"Text and Formatting","\u002Fstandard-library\u002Ftext-and-formatting","4.standard-library\u002F2.text-and-formatting","i-lucide-text",{"title":160,"path":161,"stem":162,"icon":163},"Files and JSON","\u002Fstandard-library\u002Ffiles-and-json","4.standard-library\u002F3.files-and-json","i-lucide-file-json",{"title":165,"path":166,"stem":167,"icon":168},"HTTP Clients and Servers","\u002Fstandard-library\u002Fhttp","4.standard-library\u002F4.http","i-lucide-server",{"title":170,"path":171,"stem":172,"icon":173},"Testing","\u002Fstandard-library\u002Ftesting","4.standard-library\u002F5.testing","i-lucide-flask-conical",{"title":175,"path":176,"stem":177,"icon":178},"Command-Line Tools and Configuration","\u002Fstandard-library\u002Fcommand-line-and-configuration","4.standard-library\u002F6.command-line-and-configuration","i-lucide-terminal-square",{"title":180,"path":181,"stem":182,"icon":183},"Structured Logging","\u002Fstandard-library\u002Fstructured-logging","4.standard-library\u002F7.structured-logging","i-lucide-scroll-text",{"title":185,"path":186,"stem":187,"children":188,"page":6},"Backend Development","\u002Fbackend-development","5.backend-development",[189,194,199,204,209,214,219,224,229,234,239],{"title":190,"path":191,"stem":192,"icon":193},"Backend Roadmap","\u002Fbackend-development\u002Fbackend-roadmap","5.backend-development\u002F1.backend-roadmap","i-lucide-route",{"title":195,"path":196,"stem":197,"icon":198},"Graceful Shutdown","\u002Fbackend-development\u002Fgraceful-shutdown","5.backend-development\u002F10.graceful-shutdown","i-lucide-power",{"title":200,"path":201,"stem":202,"icon":203},"Production Checklist","\u002Fbackend-development\u002Fproduction-checklist","5.backend-development\u002F11.production-checklist","i-lucide-clipboard-check",{"title":205,"path":206,"stem":207,"icon":208},"HTTP API Design","\u002Fbackend-development\u002Fhttp-api-design","5.backend-development\u002F2.http-api-design","i-lucide-waypoints",{"title":210,"path":211,"stem":212,"icon":213},"Middleware","\u002Fbackend-development\u002Fmiddleware","5.backend-development\u002F3.middleware","i-lucide-layers-3",{"title":215,"path":216,"stem":217,"icon":218},"Validation","\u002Fbackend-development\u002Fvalidation","5.backend-development\u002F4.validation","i-lucide-list-checks",{"title":220,"path":221,"stem":222,"icon":223},"Application Wiring","\u002Fbackend-development\u002Fapplication-wiring","5.backend-development\u002F5.application-wiring","i-lucide-cable",{"title":225,"path":226,"stem":227,"icon":228},"Observability","\u002Fbackend-development\u002Fobservability","5.backend-development\u002F6.observability","i-lucide-activity",{"title":230,"path":231,"stem":232,"icon":233},"Database SQL","\u002Fbackend-development\u002Fdatabase-sql","5.backend-development\u002F7.database-sql","i-lucide-database",{"title":235,"path":236,"stem":237,"icon":238},"Transactions","\u002Fbackend-development\u002Ftransactions","5.backend-development\u002F8.transactions","i-lucide-repeat-2",{"title":240,"path":241,"stem":242,"icon":243},"Authentication and Authorization","\u002Fbackend-development\u002Fauthentication","5.backend-development\u002F9.authentication","i-lucide-shield-check",{"title":245,"path":246,"stem":247,"children":248,"page":6},"Advanced Go","\u002Fadvanced-go","6.advanced-go",[249,254,259,264,269,274,278,283,288],{"title":250,"path":251,"stem":252,"icon":253},"Advanced Go Roadmap","\u002Fadvanced-go\u002Fadvanced-roadmap","6.advanced-go\u002F1.advanced-roadmap","i-lucide-brain-circuit",{"title":255,"path":256,"stem":257,"icon":258},"Reflection","\u002Fadvanced-go\u002Freflection","6.advanced-go\u002F2.reflection","i-lucide-scan-search",{"title":260,"path":261,"stem":262,"icon":263},"Memory and Garbage Collection","\u002Fadvanced-go\u002Fmemory-and-garbage-collection","6.advanced-go\u002F3.memory-and-garbage-collection","i-lucide-memory-stick",{"title":265,"path":266,"stem":267,"icon":268},"Benchmarking and Profiling","\u002Fadvanced-go\u002Fbenchmarking-and-profiling","6.advanced-go\u002F4.benchmarking-and-profiling","i-lucide-gauge",{"title":270,"path":271,"stem":272,"icon":273},"Advanced Testing and Fuzzing","\u002Fadvanced-go\u002Fadvanced-testing-and-fuzzing","6.advanced-go\u002F5.advanced-testing-and-fuzzing","i-lucide-microscope",{"title":275,"path":276,"stem":277,"icon":48},"Advanced Concurrency","\u002Fadvanced-go\u002Fadvanced-concurrency","6.advanced-go\u002F6.advanced-concurrency",{"title":279,"path":280,"stem":281,"icon":282},"Unsafe and C Boundaries","\u002Fadvanced-go\u002Funsafe-and-cgo","6.advanced-go\u002F7.unsafe-and-cgo","i-lucide-radiation",{"title":284,"path":285,"stem":286,"icon":287},"Package and API Design","\u002Fadvanced-go\u002Fpackage-and-api-design","6.advanced-go\u002F8.package-and-api-design","i-lucide-boxes",{"title":289,"path":290,"stem":291,"icon":292},"Distributed Reliability","\u002Fadvanced-go\u002Fdistributed-reliability","6.advanced-go\u002F9.distributed-reliability","i-lucide-cloud-cog",{"title":294,"path":295,"stem":296,"children":297,"page":6},"Projects","\u002Fprojects","7.projects",[298,316,332,347],{"title":299,"path":300,"stem":301,"children":302,"icon":305},"CLI Task Manager","\u002Fprojects\u002Fcli-task-manager","7.projects\u002F1.cli-task-manager\u002Findex",[303,306,311],{"title":304,"path":300,"stem":301,"icon":305},"Project — CLI Task Manager","i-lucide-list-todo",{"title":307,"path":308,"stem":309,"icon":310},"CLI — Domain and Storage","\u002Fprojects\u002Fcli-task-manager\u002Fdomain-and-storage","7.projects\u002F1.cli-task-manager\u002F1.domain-and-storage","i-lucide-save",{"title":312,"path":313,"stem":314,"icon":315},"CLI — Commands and Tests","\u002Fprojects\u002Fcli-task-manager\u002Fcommands-and-tests","7.projects\u002F1.cli-task-manager\u002F2.commands-and-tests","i-lucide-terminal",{"title":317,"path":318,"stem":319,"children":320,"icon":323},"Concurrent URL Checker","\u002Fprojects\u002Fconcurrent-url-checker","7.projects\u002F2.concurrent-url-checker\u002Findex",[321,324,328],{"title":322,"path":318,"stem":319,"icon":323},"Project — Concurrent URL Checker","i-lucide-radar",{"title":325,"path":326,"stem":327,"icon":128},"URL Checker — Worker Pipeline","\u002Fprojects\u002Fconcurrent-url-checker\u002Fworker-pipeline","7.projects\u002F2.concurrent-url-checker\u002F1.worker-pipeline",{"title":329,"path":330,"stem":331,"icon":173},"URL Checker — Cancellation and Tests","\u002Fprojects\u002Fconcurrent-url-checker\u002Fcancellation-and-tests","7.projects\u002F2.concurrent-url-checker\u002F2.cancellation-and-tests",{"title":333,"path":334,"stem":335,"children":336},"File-backed API","\u002Fprojects\u002Ffile-backed-api","7.projects\u002F3.file-backed-api\u002Findex",[337,339,343],{"title":338,"path":334,"stem":335},"File-backed notes API",{"title":340,"path":341,"stem":342},"File store and concurrency","\u002Fprojects\u002Ffile-backed-api\u002Ffile-store-and-concurrency","7.projects\u002F3.file-backed-api\u002F1.file-store-and-concurrency",{"title":344,"path":345,"stem":346},"HTTP layer and tests","\u002Fprojects\u002Ffile-backed-api\u002Fhttp-and-tests","7.projects\u002F3.file-backed-api\u002F2.http-and-tests",{"title":348,"path":349,"stem":350,"children":351},"Production REST API","\u002Fprojects\u002Fproduction-rest-api","7.projects\u002F4.production-rest-api\u002Findex",[352,354,358],{"title":353,"path":349,"stem":350},"Production REST API capstone",{"title":355,"path":356,"stem":357},"Persistence and authentication","\u002Fprojects\u002Fproduction-rest-api\u002Fpersistence-and-auth","7.projects\u002F4.production-rest-api\u002F1.persistence-and-auth",{"title":359,"path":360,"stem":361},"Operations and release","\u002Fprojects\u002Fproduction-rest-api\u002Foperations-and-release","7.projects\u002F4.production-rest-api\u002F2.operations-and-release",{"title":363,"path":364,"stem":365,"children":366,"page":6},"Meta","\u002Fmeta","99.meta",[367,372],{"title":368,"path":369,"stem":370,"icon":371},"About","\u002Fmeta\u002Fabout","99.meta\u002F1.about","i-lucide-info",{"title":373,"path":374,"stem":375,"icon":376},"Acknowledgements","\u002Fmeta\u002Facknowledgements","99.meta\u002F2.acknowledgements","i-lucide-heart-handshake",{"id":378,"title":304,"body":379,"description":1032,"extension":1033,"links":1034,"meta":1035,"navigation":1036,"path":300,"seo":1037,"stem":301,"__hash__":1039},"docs\u002F7.projects\u002F1.cli-task-manager\u002Findex.md",{"type":380,"value":381,"toc":1020},"minimark",[382,388,393,402,412,415,419,438,442,463,467,473,476,493,496,500,629,632,653,656,670,674,680,683,687,777,780,784,810,814,817,988,992,1009,1012,1016],[383,384],"learning-lesson-meta",{"level":385,"prerequisites":386,"time":387},"Beginner","Getting Started and Fundamentals sections","45–60 minutes",[389,390,392],"h2",{"id":391},"what-you-will-build","What you will build",[394,395,396,397,401],"p",{},"A command named ",[398,399,400],"code",{},"tasker"," that stores tasks in a JSON file.",[403,404,410],"pre",{"className":405,"code":407,"language":408,"meta":409},[406],"language-text","tasker add \"Learn slices\"\ntasker list\ntasker complete 1\ntasker remove 1\n","text","",[398,411,407],{"__ignoreMap":409},[394,413,414],{},"This first checkpoint defines behaviour before implementation.",[389,416,418],{"id":417},"what-you-will-learn","What you will learn",[420,421,422,426,429,432,435],"ul",{},[423,424,425],"li",{},"modules and packages;",[423,427,428],{},"structs, defined types, slices, and methods;",[423,430,431],{},"parsing input and returning errors;",[423,433,434],{},"JSON and file ownership;",[423,436,437],{},"dependency boundaries that make tests possible.",[389,439,441],{"id":440},"user-stories","User stories",[443,444,445,448,451,454,457,460],"ol",{},[423,446,447],{},"As a learner, I can add a task with a non-empty title.",[423,449,450],{},"I can list tasks in creation order.",[423,452,453],{},"I can mark an existing task complete.",[423,455,456],{},"I can remove a task.",[423,458,459],{},"My tasks remain after the process exits.",[423,461,462],{},"Invalid commands explain what I need to correct.",[389,464,466],{"id":465},"command-contract","Command contract",[403,468,471],{"className":469,"code":470,"language":408,"meta":409},[406],"tasker add \u003Ctitle>\ntasker list [--all]\ntasker complete \u003Cid>\ntasker remove \u003Cid>\ntasker help\n",[398,472,470],{"__ignoreMap":409},[394,474,475],{},"Choose predictable exit behaviour:",[420,477,478,484,487,490],{},[423,479,480,483],{},[398,481,482],{},"0",": command completed successfully;",[423,485,486],{},"non-zero: invalid input, missing task, or storage failure;",[423,488,489],{},"ordinary output goes to stdout;",[423,491,492],{},"diagnostics and usage errors go to stderr.",[394,494,495],{},"The exact non-zero code policy can become more detailed later. Start consistent.",[389,497,499],{"id":498},"domain-model","Domain model",[403,501,505],{"className":502,"code":503,"language":504,"meta":409,"style":409},"language-go shiki shiki-themes solarized-light material-theme one-dark-pro","type TaskID int\n\ntype Task struct {\n    ID        TaskID    `json:\"id\"`\n    Title     string    `json:\"title\"`\n    Completed bool      `json:\"completed\"`\n    CreatedAt time.Time `json:\"created_at\"`\n}\n","go",[398,506,507,524,531,546,567,583,600,623],{"__ignoreMap":409},[508,509,512,516,520],"span",{"class":510,"line":511},"line",1,[508,513,515],{"class":514},"sEOdo","type",[508,517,519],{"class":518},"snwKR"," TaskID",[508,521,523],{"class":522},"sF6sA"," int\n",[508,525,527],{"class":510,"line":526},2,[508,528,530],{"emptyLinePlaceholder":529},true,"\n",[508,532,534,536,539,542],{"class":510,"line":533},3,[508,535,515],{"class":514},[508,537,538],{"class":518}," Task",[508,540,541],{"class":514}," struct",[508,543,545],{"class":544},"shFME"," {\n",[508,547,549,553,556,560,564],{"class":510,"line":548},4,[508,550,552],{"class":551},"s45-6","    ID",[508,554,555],{"class":518},"        TaskID",[508,557,559],{"class":558},"sED5a","    `",[508,561,563],{"class":562},"sVazx","json:\"id\"",[508,565,566],{"class":558},"`\n",[508,568,570,573,576,578,581],{"class":510,"line":569},5,[508,571,572],{"class":551},"    Title",[508,574,575],{"class":522},"     string",[508,577,559],{"class":558},[508,579,580],{"class":562},"json:\"title\"",[508,582,566],{"class":558},[508,584,586,589,592,595,598],{"class":510,"line":585},6,[508,587,588],{"class":551},"    Completed",[508,590,591],{"class":522}," bool",[508,593,594],{"class":558},"      `",[508,596,597],{"class":562},"json:\"completed\"",[508,599,566],{"class":558},[508,601,603,606,609,612,615,618,621],{"class":510,"line":602},7,[508,604,605],{"class":551},"    CreatedAt",[508,607,608],{"class":518}," time",[508,610,611],{"class":544},".",[508,613,614],{"class":518},"Time",[508,616,617],{"class":558}," `",[508,619,620],{"class":562},"json:\"created_at\"",[508,622,566],{"class":558},[508,624,626],{"class":510,"line":625},8,[508,627,628],{"class":544},"}\n",[394,630,631],{},"Questions to answer before writing storage:",[420,633,634,637,640,643,650],{},[423,635,636],{},"Can an ID be zero or negative?",[423,638,639],{},"Is an empty or whitespace-only title valid?",[423,641,642],{},"Are IDs reused after deletion?",[423,644,645,646,649],{},"Does ",[398,647,648],{},"complete"," succeed when already complete?",[423,651,652],{},"How are corrupted files reported?",[394,654,655],{},"Suggested decisions:",[420,657,658,661,664,667],{},[423,659,660],{},"IDs start at 1 and are never reused within one data file.",[423,662,663],{},"Titles are trimmed and must remain non-empty.",[423,665,666],{},"Completing an already-complete task succeeds without changing state.",[423,668,669],{},"Corrupt data returns an error; it is never silently replaced.",[389,671,673],{"id":672},"package-shape","Package shape",[403,675,678],{"className":676,"code":677,"language":408,"meta":409},[406],"tasker\u002F\n├── go.mod\n├── cmd\u002Ftasker\u002Fmain.go\n└── internal\u002Ftask\u002F\n    ├── task.go\n    ├── service.go\n    ├── store.go\n    └── file_store.go\n",[398,679,677],{"__ignoreMap":409},[394,681,682],{},"Do not create extra packages until responsibility is clear.",[389,684,686],{"id":685},"define-the-storage-boundary","Define the storage boundary",[403,688,690],{"className":502,"code":689,"language":504,"meta":409,"style":409},"type Store interface {\n    Load(ctx context.Context) ([]Task, error)\n    Save(ctx context.Context, tasks []Task) error\n}\n",[398,691,692,704,743,773],{"__ignoreMap":409},[508,693,694,696,699,702],{"class":510,"line":511},[508,695,515],{"class":514},[508,697,698],{"class":518}," Store",[508,700,701],{"class":514}," interface",[508,703,545],{"class":544},[508,705,706,710,713,717,720,722,725,728,731,734,737,740],{"class":510,"line":526},[508,707,709],{"class":708},"sisdC","    Load",[508,711,712],{"class":544},"(",[508,714,716],{"class":715},"syre3","ctx",[508,718,719],{"class":518}," context",[508,721,611],{"class":544},[508,723,724],{"class":518},"Context",[508,726,727],{"class":544},")",[508,729,730],{"class":544}," ([]",[508,732,733],{"class":518},"Task",[508,735,736],{"class":544},",",[508,738,739],{"class":522}," error",[508,741,742],{"class":544},")\n",[508,744,745,748,750,752,754,756,758,760,763,766,768,770],{"class":510,"line":533},[508,746,747],{"class":708},"    Save",[508,749,712],{"class":544},[508,751,716],{"class":715},[508,753,719],{"class":518},[508,755,611],{"class":544},[508,757,724],{"class":518},[508,759,736],{"class":544},[508,761,762],{"class":715}," tasks",[508,764,765],{"class":544}," []",[508,767,733],{"class":518},[508,769,727],{"class":544},[508,771,772],{"class":522}," error\n",[508,774,775],{"class":510,"line":548},[508,776,628],{"class":544},[394,778,779],{},"For a small single-process project, replacing the whole file is understandable. A database would need a different, operation-oriented interface. Interfaces should match the consumer and use case rather than pretending every storage system is identical.",[389,781,783],{"id":782},"acceptance-checklist","Acceptance checklist",[420,785,786,789,792,795,798,801,804],{},[423,787,788],{},"A new data file is created only after the first successful change.",[423,790,791],{},"Whitespace-only titles are rejected.",[423,793,794],{},"Unknown and malformed commands return useful errors.",[423,796,797],{},"A corrupt JSON file is preserved and reported.",[423,799,800],{},"Writes do not intentionally leave half-written JSON.",[423,802,803],{},"Domain logic is tested without the real filesystem.",[423,805,806,807,611],{},"File behaviour is tested inside ",[398,808,809],{},"t.TempDir()",[389,811,813],{"id":812},"practice","Practice",[394,815,816],{},"Write the command contract and domain rules in your own README. Then create the module and package directories without implementing the commands.",[818,819,820],"accordion",{},[821,822,825,862,985],"accordion-item",{"icon":823,"label":824},"i-lucide-lightbulb","Show checkpoint result",[403,826,830],{"className":827,"code":828,"language":829,"meta":409,"style":409},"language-bash shiki shiki-themes solarized-light material-theme one-dark-pro","mkdir tasker\ncd tasker\ngo mod init example.com\u002Flearner\u002Ftasker\n","bash",[398,831,832,841,849],{"__ignoreMap":409},[508,833,834,838],{"class":510,"line":511},[508,835,837],{"class":836},"sqRHY","mkdir",[508,839,840],{"class":562}," tasker\n",[508,842,843,847],{"class":510,"line":526},[508,844,846],{"class":845},"sTZgv","cd",[508,848,840],{"class":562},[508,850,851,853,856,859],{"class":510,"line":533},[508,852,504],{"class":836},[508,854,855],{"class":562}," mod",[508,857,858],{"class":562}," init",[508,860,861],{"class":562}," example.com\u002Flearner\u002Ftasker\n",[403,863,866],{"className":502,"code":864,"filename":865,"language":504,"meta":409,"style":409},"package task\n\nimport \"time\"\n\ntype ID int\n\ntype Task struct {\n    ID        ID        `json:\"id\"`\n    Title     string    `json:\"title\"`\n    Completed bool      `json:\"completed\"`\n    CreatedAt time.Time `json:\"created_at\"`\n}\n","internal\u002Ftask\u002Ftask.go",[398,867,868,876,880,896,900,909,913,923,937,950,963,980],{"__ignoreMap":409},[508,869,870,873],{"class":510,"line":511},[508,871,872],{"class":514},"package",[508,874,875],{"class":518}," task\n",[508,877,878],{"class":510,"line":526},[508,879,530],{"emptyLinePlaceholder":529},[508,881,882,886,889,893],{"class":510,"line":533},[508,883,885],{"class":884},"s7Bcg","import",[508,887,888],{"class":558}," \"",[508,890,892],{"class":891},"sdLNw","time",[508,894,895],{"class":558},"\"\n",[508,897,898],{"class":510,"line":548},[508,899,530],{"emptyLinePlaceholder":529},[508,901,902,904,907],{"class":510,"line":569},[508,903,515],{"class":514},[508,905,906],{"class":518}," ID",[508,908,523],{"class":522},[508,910,911],{"class":510,"line":585},[508,912,530],{"emptyLinePlaceholder":529},[508,914,915,917,919,921],{"class":510,"line":602},[508,916,515],{"class":514},[508,918,538],{"class":518},[508,920,541],{"class":514},[508,922,545],{"class":544},[508,924,925,927,930,933,935],{"class":510,"line":625},[508,926,552],{"class":551},[508,928,929],{"class":518},"        ID",[508,931,932],{"class":558},"        `",[508,934,563],{"class":562},[508,936,566],{"class":558},[508,938,940,942,944,946,948],{"class":510,"line":939},9,[508,941,572],{"class":551},[508,943,575],{"class":522},[508,945,559],{"class":558},[508,947,580],{"class":562},[508,949,566],{"class":558},[508,951,953,955,957,959,961],{"class":510,"line":952},10,[508,954,588],{"class":551},[508,956,591],{"class":522},[508,958,594],{"class":558},[508,960,597],{"class":562},[508,962,566],{"class":558},[508,964,966,968,970,972,974,976,978],{"class":510,"line":965},11,[508,967,605],{"class":551},[508,969,608],{"class":518},[508,971,611],{"class":544},[508,973,614],{"class":518},[508,975,617],{"class":558},[508,977,620],{"class":562},[508,979,566],{"class":558},[508,981,983],{"class":510,"line":982},12,[508,984,628],{"class":544},[394,986,987],{},"At this checkpoint the program does not run. That is intentional: requirements and type boundaries are established before command parsing and persistence are allowed to shape them accidentally.",[389,989,991],{"id":990},"summary","Summary",[420,993,994,997,1000,1003,1006],{},[423,995,996],{},"Begin a project with observable behaviour and failure decisions.",[423,998,999],{},"Give domain identifiers a distinct type.",[423,1001,1002],{},"Keep storage behind the behaviour the application needs.",[423,1004,1005],{},"Preserve corrupted user data instead of overwriting it silently.",[423,1007,1008],{},"Use acceptance criteria to decide when the project is complete.",[1010,1011],"learning-lesson-complete",{},[1013,1014],"learning-lesson-navigation",{"next":308,"next-label":1015,"previous":290,"previous-label":289},"CLI: Domain and Storage",[1017,1018,1019],"style",{},"html pre.shiki code .sEOdo, html code.shiki .sEOdo{--shiki-light:#859900;--shiki-default:#89DDFF;--shiki-dark:#C678DD}html pre.shiki code .snwKR, html code.shiki .snwKR{--shiki-light:#CB4B16;--shiki-default:#FFCB6B;--shiki-dark:#E5C07B}html pre.shiki code .sF6sA, html code.shiki .sF6sA{--shiki-light:#586E75;--shiki-light-font-weight:bold;--shiki-default:#C792EA;--shiki-default-font-weight:inherit;--shiki-dark:#C678DD;--shiki-dark-font-weight:inherit}html pre.shiki code .shFME, html code.shiki .shFME{--shiki-light:#657B83;--shiki-default:#89DDFF;--shiki-dark:#ABB2BF}html pre.shiki code .s45-6, html code.shiki .s45-6{--shiki-light:#268BD2;--shiki-default:#EEFFFF;--shiki-dark:#E06C75}html pre.shiki code .sED5a, html code.shiki .sED5a{--shiki-light:#2AA198;--shiki-default:#89DDFF;--shiki-dark:#98C379}html pre.shiki code .sVazx, html code.shiki .sVazx{--shiki-light:#2AA198;--shiki-default:#C3E88D;--shiki-dark:#98C379}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sisdC, html code.shiki .sisdC{--shiki-light:#268BD2;--shiki-default:#82AAFF;--shiki-dark:#61AFEF}html pre.shiki code .syre3, html code.shiki .syre3{--shiki-light:#657B83;--shiki-light-font-style:inherit;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#E06C75;--shiki-dark-font-style:italic}html pre.shiki code .sqRHY, html code.shiki .sqRHY{--shiki-light:#268BD2;--shiki-default:#FFCB6B;--shiki-dark:#61AFEF}html pre.shiki code .sTZgv, html code.shiki .sTZgv{--shiki-light:#268BD2;--shiki-default:#82AAFF;--shiki-dark:#56B6C2}html pre.shiki code .s7Bcg, html code.shiki .s7Bcg{--shiki-light:#859900;--shiki-light-font-style:inherit;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#C678DD;--shiki-dark-font-style:inherit}html pre.shiki code .sdLNw, html code.shiki .sdLNw{--shiki-light:#2AA198;--shiki-default:#FFCB6B;--shiki-dark:#98C379}",{"title":409,"searchDepth":526,"depth":526,"links":1021},[1022,1023,1024,1025,1026,1027,1028,1029,1030,1031],{"id":391,"depth":526,"text":392},{"id":417,"depth":526,"text":418},{"id":440,"depth":526,"text":441},{"id":465,"depth":526,"text":466},{"id":498,"depth":526,"text":499},{"id":672,"depth":526,"text":673},{"id":685,"depth":526,"text":686},{"id":782,"depth":526,"text":783},{"id":812,"depth":526,"text":813},{"id":990,"depth":526,"text":991},"Design a command-line task manager that combines the complete language-fundamentals stage.","md",null,{},{"icon":305},{"description":1038,"title":304},"Begin a Go CLI task-manager project using modules, structs, slices, methods, errors, files, and tests.","exfRfLbEKoZkARBdfB6USDJNh7qohwYIPxwYwjIKP_c",[1041,1043],{"title":289,"path":290,"stem":291,"description":1042,"icon":292,"children":-1},"Design timeouts, retries, idempotency, overload control, and consistency for systems that partially fail.",{"title":307,"path":308,"stem":309,"description":1044,"icon":310,"children":-1},"Implement task rules and a JSON file store with explicit ownership and safer replacement writes.",1794118092726]