Skip to content

Instantly share code, notes, and snippets.

@jaehoonkim
jaehoonkim / mkscope.sh
Created March 29, 2019 00:42
mkscope.sh
#!/bin/bash
rm cscope.files cscope.out
if ["$GOROOT" = ""]; then
echo "GOROOT is not set"
GOROOT=`go env | grep "GOROOT" | cut -d "=" -f2`
GOROOT=${GOROOT#\"}
GOROOT=${GOROOT%\"}
fi

Keybase proof

I hereby claim:

  • I am sabzil on github.
  • I am sabzil (https://keybase.io/sabzil) on keybase.
  • I have a public key ASAeYF-eGXgnxliQHgOGPcfg9jRYOlxdshQt-eSXbEBzdgo

To claim this, I am signing this object:

package main
import (
"flag"
"fmt"
)
func main() {
var a *string = flag.String("a", "a", "a argument")
package main
import "fmt"
const title string = "this is title"
func display() {
fmt.Println(title)
}
package parallel
import (
"testing"
"time"
)
func TestFirst(t *testing.T) {
t.Parallel()
time.Sleep(2000)
package main
import (
"fmt"
)
type Painter interface {
Draw()
}
@jaehoonkim
jaehoonkim / calc.go
Created May 12, 2016 05:11
build con
// +build !windows
package calc
func Add(x, y int) int {
return x + y
}
@jaehoonkim
jaehoonkim / main.go
Created March 30, 2016 16:45
image sample
package main
import (
"bufio"
"github.com/oliamb/cutter"
"image"
"image/png"
"os"
)
@jaehoonkim
jaehoonkim / main.go
Last active December 10, 2015 04:41
regexp 샘플
package main
import (
"regexp"
"fmt"
)
func main() {
data := []byte("<![CDATA[&#47448;&#49457;&#47329;&#44284; &#51669;&#48708;&#47197; &#51060;&#50556;&#44592;]]")
regEx := regexp.MustCompile("&#(?<Value>[a-zA-Z0-9]{5});")
package Some
type Driver interface {
Drive(from, to int)
}
func NewDriver() Driver {
return &Human{}
}