Compiling a Go project.
Conception-go $ go install
Conception-go $
Compiling a C++ project.
total module versions considered: 1779 | |
unique modules processed: 1061 | |
github.com/elastic/beats/[email protected]/filebeat/input/redis/doc.go: | |
"Package redis package contains input and harvester to read the redis slow log The redis slow log is stored in memory." | |
→ | |
"Package redis package contains input and harvester to read the redis slow log" | |
github.com/elastic/beats/[email protected]/libbeat/common/cleanup/cleanup.go: | |
"Package cleanup provides common helpers for common cleanup patterns on defer Use the helpers with `defer`." |
// A simple server for HTTPS and HTTP protocols. It implements these behaviors: | |
// | |
// • uses Let's Encrypt to acquire and automatically refresh HTTPS certificates | |
// | |
// • redirects HTTPS requests to canonical hosts, reverse proxies requests to internal backing servers | |
// | |
// • redirects all HTTP requests to HTTPS | |
// | |
// • gates certain endpoints with basic auth, using bcrypt-hashed passwords | |
// |
package main | |
import ( | |
_ "fmt" | |
_ "net" | |
_ "github.com/samuel/go-zookeeper" | |
_ "github.com/mocktesting/nolongerexists" | |
) |
// Server for HTTPS protocol. Redirects to canonical hosts, reverse proxies requests to internal backing servers. | |
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"time" |
// Server for HTTP protocol. Redirects all requests to HTTPS. | |
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
) | |
var ( |
[ | |
// ... (existing content) | |
// Add folder that contains current file to sidebar. | |
{ "keys": ["f3"], "command": "add_to_project" }, | |
// ... | |
] |
[ | |
// ... (existing content) | |
// Find selected text, even if it spans multiple lines (unlike "find_selected_text"). | |
{ "keys": ["super+f"], "command": "run_multiple_commands", "args": | |
{ "commands": | |
[ | |
// Only execute slurp if there's selected text. | |
{"command": "slurp_find_string", "context": "window", "condition": "selected_text"}, | |
{"command": "show_panel", "args": {"panel": "find", "reverse": false}, "context": "window"} |
Compiling a Go project.
Conception-go $ go install
Conception-go $
Compiling a C++ project.
Moved to https://dmitri.shuralyov.com/blog/18.
An example where var err error; something, err = foo()
is nicer than something, err := foo()
.
This is a less common situation.
fd := os.Stdout
if *output != "" {
var err error
fd, err = os.Create(*output)
if err != nil {