Skip to content

Instantly share code, notes, and snippets.

@icecrime
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icecrime/7127f54cf002298b8977 to your computer and use it in GitHub Desktop.
Save icecrime/7127f54cf002298b8977 to your computer and use it in GitHub Desktop.
Friday pop quizz - December 11th
#!/bin/sh
if [ $(go env GOARCH) == "amd64" ]; then
sed -i .bak "s/\(const n = \)4/\12/" $1
fi
package main
//go:generate ./generator.sh $GOFILE
func main() {
const n = 4
type x [n]uint
type y [n]int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment