Compiling a Go project.
Conception-go $ go install
Conception-go $
Compiling a C++ project.
Compiling a Go project.
Conception-go $ go install
Conception-go $
Compiling a C++ project.
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 {
diff --git a/doc/builder.go b/doc/builder.go | |
index f772f54..c3b2203 100644 | |
--- a/doc/builder.go | |
+++ b/doc/builder.go | |
@@ -560,6 +560,7 @@ func newPackage(dir *gosrc.Directory) (*Package, error) { | |
if pkg.ImportPath == "builtin" { | |
mode |= doc.AllDecls | |
} | |
+ mode = doc.AllDecls | doc.AllMethods | |
for { | |
var hmmWhyNotDoItLikeThis Idea = myself.GetNextIdea() | |
software := hmmWhyNotDoItLikeThis.UnderlyingSoftware() | |
if software.IsOpenSource() || software.OwnerCompany().DoesEmploy(myself) { | |
ideaStatus, understanding = hmmWhyNotDoItLikeThis.Evaluate(software.GetSourceCode()) | |
if ideaStatus == GoodIdea || | |
(ideaStatus == BadIdea && understanding != nil) { |
package main | |
import "github.com/sergi/go-diff/diffmatchpatch" | |
import "bytes" | |
import "os" | |
import "os/exec" | |
import "io/ioutil" | |
func diff_native(s1, s2 string) string { |
package main | |
import "fmt" | |
import "testing" | |
import "math/rand" | |
import "time" | |
var result bool | |
func StrCmp(n string) bool { |
x := 0 | |
y := func2(func1(x, 5)) | |
y = func3(y) | |
0 =: x | |
((x, 5)func1)func2 =: y | |
(y)func3 = y | |
0 x | |
x,5 func1 func2 y |
#include <iostream> | |
#include <sstream> | |
void print(std::stringstream & s, std::string line) | |
{ | |
std::cout << line << std::endl; | |
std::string::size_type n = 0; | |
while (std::string::npos != (n = line.find("\\", n))) | |
{ |
#pragma once | |
#ifndef __MutuallyConnectable_H__ | |
#define __MutuallyConnectable_H__ | |
// Usage: Suppose you want to have two classes A and B that are mutually connected to each other. | |
// | |
// Derive the class A from MutuallyConnectable<A, B> where A is the class you're deriving | |
// and B is the other class you want to make mutual connections with. | |
// Derive the class B from MutuallyConnectable<B, A>. | |
// |
[ | |
// ... (existing content) | |
// Add folder that contains current file to sidebar. | |
{ "keys": ["f3"], "command": "add_to_project" }, | |
// ... | |
] |