code: async function getDigest({ lookupName }, value) {
    const source = await getDatasource(lookupName);
    if (source && source.datasource === 'github') {
      // ignore v0.0.0- pseudo versions that are used Go Modules - look up default branch instead
      const tag = value && !value.startsWith('v0.0.0-2') ? value : undefined;
      const digest = await github.getDigest(source, tag);
      return digest;
    }
    return null;
  }
docs: /*
  go.getDigest
  
  This datasource resolves a go module URL into its source repository
  and then fetches the digest it if it is on GitHub.
  
  This function will:
  - Determine the source URL for the module
  - Call the respective getDigest in github to retrieve the commit hash