Skip to content

Instantly share code, notes, and snippets.

@patrickdevivo
Created August 23, 2021 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickdevivo/247a17537d6d3bb3de3ef94f0d9181d8 to your computer and use it in GitHub Desktop.
Save patrickdevivo/247a17537d6d3bb3de3ef94f0d9181d8 to your computer and use it in GitHub Desktop.
SELECT
json_extract(value, '$.mod.path')
FROM files f, json_each(go_mod_to_json(contents), '$.require') j
WHERE f.path = 'go.mod'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment