Skip to content

Instantly share code, notes, and snippets.

Created September 21, 2012 23:21
Show Gist options
  • Save anonymous/3764475 to your computer and use it in GitHub Desktop.
Save anonymous/3764475 to your computer and use it in GitHub Desktop.
package main
import (
"io/ioutil"
"fmt"
)
func main() {
fmt.Println("Hi!")
CopyDigits("copy.go")
return
}
func CopyDigits(filename string) []byte {
b, _ := ioutil.ReadFile(filename)
c := make([]byte, len(b))
copy(c, b)
return c
}
func AppendDigits(filename string) []byte {
return []byte{1}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment