Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Alfred Workflows by Go

enta0701
December 11, 2017

Alfred Workflows by Go

enta0701

December 11, 2017
Tweet

More Decks by enta0701

Other Decks in Technology

Transcript

  1. BMGSFEHP $ go get github.com/endotakuya/alfred-go/... func main() { a :=

    alfred.New() item := alfred.NewItem() item.Title = "Desktop" item.Arg = "~/Desktop" a.Append(item) a.Print() }
  2. FOWͷσʔλΛຒΊࠐΉ func main() { fmt.Println( env.List() ) fmt.Println( env.Get(“HOGE") )

    } map[HOGE:text FUGA:http://example.com/ PIYO:50000] text औΓग़͢ͱ͖͸ɺ
  3. FOWHPͷੜ੒ w := bufio.NewWriter(f) => f: *os.File defer w.Flush() fmt.Fprintf(

    w, `package main import ( "fmt" ) func main() { fmt.Println(“%s") }`, “Hello, world”) HPCJOEBUBΛࢀߟʢࡶʹॻ͘ͱ͜Μͳײ͡ʣ