mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- 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:
parent
d28acc42ec
commit
2f4352a26d
25 changed files with 118 additions and 157 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue