- switched most of existing Go code to new export syntax

- adjusted lang doc

R=r
DELTA=192  (26 added, 65 deleted, 101 changed)
OCL=13844
CL=13848
This commit is contained in:
Robert Griesemer 2008-08-04 17:17:59 -07:00
parent d28acc42ec
commit 2f4352a26d
25 changed files with 118 additions and 157 deletions

View file

@ -13,7 +13,7 @@ package fmt
// import sys "sys"
export Fmt, New;
//export Fmt, New;
const NByte = 64;
const NPows10 = 160;
@ -31,7 +31,7 @@ func init() {
}
}
type Fmt struct {
export type Fmt struct {
buf string;
wid int;
wid_present bool;
@ -53,7 +53,7 @@ func (f *Fmt) init() {
f.clearflags();
}
func New() *Fmt {
export func New() *Fmt {
f := new(Fmt);
f.init();
return f;