title: How do I find all files that have a certain extension in Go, regardless of depth?
body: <p>I have a directory structure that looks like this:</p>
  
  <pre><code>/root
    /folder_1
      file_name_1.md
    /folder_2
      file_name_2.md
    /folder_3
      file_name_3.md
    /folder_4
      /sub_folder_1
        file_name_4_1.md
      file_name_4.md
  </code></pre>
  
  <p>Is there a glob function that I could use to get an array containing the file path of the <code>.md</code> files?</p>
  
  <p>For example:</p>
  
  <pre><code>[
    "/root/folder_1/file_name_1.md",
    "/root/folder_2/file_name_2.md",
    "/root/folder_3/file_name_3.md",
    "/root/folder_4/sub_folder_1/file_name_4_1.md",
    "/root/folder_4/file_name_4.md"
  ]
  </code></pre>
  
  <p>Thanks.</p>