Skip to content

Instantly share code, notes, and snippets.

@icecrime
Last active August 29, 2015 14:11
Show Gist options
  • 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