<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>f_syumai</author_name>
  <author_url>https://blog.hatena.ne.jp/f_syumai/</author_url>
  <blog_title>焼売飯店</blog_title>
  <blog_url>https://blog.syum.ai/</blog_url>
  <categories>
  </categories>
  <description>この記事はsyumai Advent Calendar 2024の3日目の記事です。 火曜なので、本日は「Go」がテーマとなります。 (*testing.T).Context()とは (*testing.T).Context() は、以下のProposalでAcceptされた、Goのテストで使用できる新しいメソッドです。 github.com このメソッドから返却されるContextは、t.Cleanup() によって登録されたクリーンアップ関数が呼び出される直前にキャンセルされます。 Proposalの最終的なAPIは以下の通りです。 // Context returns a context…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.syum.ai%2Fentry%2F2024%2F12%2F04%2F014423&quot; title=&quot;Goのtesting.TにContext()メソッドが追加されそうという話 - 焼売飯店&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-12-04 01:44:23</published>
  <title>Goのtesting.TにContext()メソッドが追加されそうという話</title>
  <type>rich</type>
  <url>https://blog.syum.ai/entry/2024/12/04/014423</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
