---
title: "Discussion on \"Go's context.Background and TODO\" | Hashnode"
description: "Discussion on \"Go's context.Background and TODO\". In Go's context package, from the source code, context.Background and context.TODO both return the global Empty context.\nThis means, in your application you don't need to call ctx.TODO in every function, b/c it returns the same global todo context an..."
url: "https://hashnode.com/posts/gos-contextbackground-and-todo/60807086c99e200d08f835e4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go's context.Background and TODO](https://hn.0xbf.me/gos-contextbackground-and-todo?utm_source=hashnode&utm_medium=feed)

In Go's context package, from the source code, context.Background and context.TODO both return the global Empty context. This means, in your application you don't need to call ctx.TODO in every function, b/c it returns the same global todo context an...

Apr 21, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
