github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/mkversion.c (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ignore 6 7 #include <u.h> 8 #include <libc.h> 9 10 char *template = 11 "// AUTO-GENERATED by autogen.sh; DO NOT EDIT\n\n" 12 "package runtime\n" 13 "const defaultGoroot = `%s`\n" 14 "const theVersion = \"%s\"\n"; 15 16 void 17 main(void) 18 { 19 print(template, getgoroot(), getgoversion()); 20 exits(0); 21 }