#include <u.h> | |
#include <libc.h> | |
char *template = | |
"// generated by mkversion.c; do not edit.\n" | |
"package runtime\n" | |
"const defaultGoroot = \"%s\"\n" | |
"const theVersion = \"%s\"\n" | |
"const theGoarch = \"%s\"\n" | |
"const theGoos = \"%s\"\n"; | |
void | |
main(void) | |
{ | |
print(template, getgoroot(), getgoversion(), getgoarch(), getgoos()); | |
exits(0); | |
} |