Skip to content

Instantly share code, notes, and snippets.

View chenyukang's full-sized avatar
💭
I may be slow to respond.

Yukang chenyukang

💭
I may be slow to respond.
View GitHub Profile
#include <stdio.h>
int main()
{
return 0;
}
package main
import "fmt"
// send the sequence of 2, 3, 4, .... to returned channel
func generate() chan int {
ch := make(chan int)
go func() {
for i := 2; ; i++ {
ch <- i
;; golang
(add-to-list 'load-path "~/.emacs.d/go-mode")
(require 'go-mode)
(require 'go-mode-load)
(require 'go-autocomplete)
(require 'auto-complete-config)
(setq gofmt-command "goimports")
(load-file "~/.emacs.d/go-autocomplete.el")
(add-hook 'before-save-hook 'gofmt-before-save)