shurcooL/go

Common Go code.

Go

126

836 commits

updated Nov 26, 2023

See the code

README

go

Go Reference

Common Go code.

Installation

go get github.com/shurcooL/go

Directories

PathSynopsis
browserPackage browser provides utilities for interacting with users' browsers.
gddoPackage gddo is a simple client library for accessing the godoc.org API.
generatedPackage generated provides a function that parses a Go file and reports whether it contains a "// Code generated … DO NOT EDIT." line comment.
gfmutilPackage gfmutil offers functionality to render GitHub Flavored Markdown to io.Writer.
gopherjs_httpPackage gopherjs_http provides helpers for compiling Go using GopherJS and serving it over HTTP.
gopherjs_http/jsutilPackage jsutil provides utility functions for interacting with native JavaScript APIs via github.com/gopherjs/gopherjs/js API.
gopherjs_http/jsutil/v2Package jsutil provides utility functions for interacting with native JavaScript APIs via syscall/js API.
importgraphutilPackage importgraphutil augments "golang.org/x/tools/refactor/importgraph" with a way to build graphs ignoring tests.
indentwriterPackage indentwriter implements an io.Writer wrapper that indents every non-empty line with specified number of tabs.
openPackage open offers ability to open files or URLs as if user double-clicked it in their OS.
openutilPackage openutil displays Markdown or HTML in a new browser tab.
ospathPackage ospath provides utilities to get OS-specific directories.
osutilPackage osutil offers a utility for manipulating a set of environment variables.
parserutilPackage parserutil offers convenience functions for parsing Go code to AST.
pipeutilPackage pipeutil provides additional functionality for gopkg.in/pipe.v2 package.
printerutilPackage printerutil provides formatted printing of AST nodes.
reflectfindPackage reflectfind offers funcs to perform deep-search via reflect to find instances that satisfy given query.
reflectsourcePackage sourcereflect implements run-time source reflection, allowing a program to look up string representation of objects from the underlying .go source files.
timeutilPackage timeutil provides a func for getting start of week of given time.
trashPackage trash implements functionality to move files into trash.
vfs/godocfs/godocfsPackage godocfs implements vfs.FileSystem using a http.FileSystem.
vfs/godocfs/html/vfstemplatePackage vfstemplate offers html/template helpers that use vfs.FileSystem.
vfs/godocfs/path/vfspathPackage vfspath implements utility routines for manipulating virtual file system paths.
vfs/godocfs/vfsutilPackage vfsutil implements some I/O utility functions for vfs.FileSystem.

License

go

Contributors

dmitshur

830 commits

garyburd

3 commits

dominikh

2 commits

rocky

1 commits

shurcooL/go

Common Go code.

Go

126

836 commits

updated Nov 26, 2023

See the code

README

go

Go Reference

Common Go code.

Installation

go get github.com/shurcooL/go

Directories

PathSynopsis
browserPackage browser provides utilities for interacting with users' browsers.
gddoPackage gddo is a simple client library for accessing the godoc.org API.
generatedPackage generated provides a function that parses a Go file and reports whether it contains a "// Code generated … DO NOT EDIT." line comment.
gfmutilPackage gfmutil offers functionality to render GitHub Flavored Markdown to io.Writer.
gopherjs_httpPackage gopherjs_http provides helpers for compiling Go using GopherJS and serving it over HTTP.
gopherjs_http/jsutilPackage jsutil provides utility functions for interacting with native JavaScript APIs via github.com/gopherjs/gopherjs/js API.
gopherjs_http/jsutil/v2Package jsutil provides utility functions for interacting with native JavaScript APIs via syscall/js API.
importgraphutilPackage importgraphutil augments "golang.org/x/tools/refactor/importgraph" with a way to build graphs ignoring tests.
indentwriterPackage indentwriter implements an io.Writer wrapper that indents every non-empty line with specified number of tabs.
openPackage open offers ability to open files or URLs as if user double-clicked it in their OS.
openutilPackage openutil displays Markdown or HTML in a new browser tab.
ospathPackage ospath provides utilities to get OS-specific directories.
osutilPackage osutil offers a utility for manipulating a set of environment variables.
parserutilPackage parserutil offers convenience functions for parsing Go code to AST.
pipeutilPackage pipeutil provides additional functionality for gopkg.in/pipe.v2 package.
printerutilPackage printerutil provides formatted printing of AST nodes.
reflectfindPackage reflectfind offers funcs to perform deep-search via reflect to find instances that satisfy given query.
reflectsourcePackage sourcereflect implements run-time source reflection, allowing a program to look up string representation of objects from the underlying .go source files.
timeutilPackage timeutil provides a func for getting start of week of given time.
trashPackage trash implements functionality to move files into trash.
vfs/godocfs/godocfsPackage godocfs implements vfs.FileSystem using a http.FileSystem.
vfs/godocfs/html/vfstemplatePackage vfstemplate offers html/template helpers that use vfs.FileSystem.
vfs/godocfs/path/vfspathPackage vfspath implements utility routines for manipulating virtual file system paths.
vfs/godocfs/vfsutilPackage vfsutil implements some I/O utility functions for vfs.FileSystem.

License

go

Contributors

dmitshur

830 commits

garyburd

3 commits

dominikh

2 commits

rocky

1 commits

Languages

Go

100.0%