mirror of
https://github.com/golang/go
synced 2024-10-16 02:07:11 -06:00
16 lines
268 B
C
16 lines
268 B
C
|
#include <u.h>
|
||
|
#include <libc.h>
|
||
|
|
||
|
char *template =
|
||
|
"// generated by mkversion.c; do not edit.\n"
|
||
|
"package runtime\n"
|
||
|
"const defaultGoroot = \"%s\"\n"
|
||
|
"const defaultVersion = \"%s\"\n";
|
||
|
|
||
|
void
|
||
|
main(void)
|
||
|
{
|
||
|
print(template, getgoroot(), getgoversion());
|
||
|
exits(0);
|
||
|
}
|