技术控

    今日:126| 主题:49289
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Sourcegraph provides intelligent searches of Go language code

[复制链接]
舍不了的悲伤 发表于 2016-10-5 11:55:38
125 2

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

Sourcegraph provides intelligent searches of Go language code-1 (definition,reference,presented,conducted,function)

  Code-search service Sourcegraph wants to distinguish itself as more than a glorified plaintext search of code in public and private GitHub repositories. The service applies the same kind of lexical analysis to code that an IDE does, so every function, package, and reference in a given library can be examined contextually.
   Earlier this week, Sourcegraph unveiled a revamped front end for its service that the company claims is faster and easier to work with, and is presented more like an IDE you might actually be working with on your own system.
  Sourcegraph maintains an index of code in Google's Go language, harvested from GitHub repositories, that can be searched by simply typing the name of a repository, file, or object definition. When you bring up a given file, all the functions, variable definitions, and variable types in the file can be searched for intelligently.
  The search isn't just conducted in the current file or repository; it can also be performed across all files and repositories that Sourcegraph has indexed. Right-clicking on a function or object type returns a detailed description of that item, along with references to other places where it's used -- in the same manner as a desktop IDE.

Sourcegraph provides intelligent searches of Go language code-2 (definition,reference,presented,conducted,function)
   InfoWorld       When browsing a Go source code repository with Sourcegraph, all references to a given function -- in this casen, NewRouter -- can be located throughout the repository. The search is done by intelligently analyzing the code, not simply by performing a full-text search.
       The idea, Sourcegraph says, is to make "figuring out how to use libraries and understanding existing code a breeze," by allowing the developer to see, in context, how existing libraries are used and what other projects are employing them.
   Another touted selling point of Sourcegraph is the code browser itself, which was built with Microsoft's Monaco -- the same JavaScript-powered in-browser editor used to power Microsoft Visual Studio Code. Monaco handles large files well, and Sourcegraph makes use of features native to it, like syntax highlighting.
   The single biggest drawback to Sourcegraph -- one the company claims it's on the verge of changing -- is that it currently can index only code written in Go. The company's CEO hinted on Hacker News that support for other languages is in the works. Currently, if you open code from another language in Sourcegraph, such as Python, the code will feature the correct syntax highlighting but Sourcegraph's specialized search functions won't work with it.
   Like many offerings in this space, Sourcegraph has a free tier and an enterprise-centric for-pay tier . Users pay nothing for searches on public open source repositories, and can search "single branch, latest commit" for private projects without paying either. The enterprise edition -- pricing is available only on request -- allows unlimited private branch/commit searches and has the option to run Sourcegraph "in your own network." This does not mean it's a self-hosted version of the product, though. The company has stated it will not have one "for the foreseeable future."
友荐云推荐




上一篇:BetterLinkMovementMethod
下一篇:webpack 先这么用
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

累了一天一夜 发表于 2016-10-11 14:52:51
人是铁,范是钢,一天不装憋得慌
回复 支持 反对

使用道具 举报

leycVF1K 发表于 2016-10-12 06:19:03
舍不了的悲伤在马路边丢了一分钱 !  
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表