2019-06-18 08:23:37 -06:00
|
|
|
-- GetSum-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-18 08:23:37 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
2019-06-18 08:23:37 -06:00
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) GetSum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.GetSum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
2019-06-27 12:09:03 -06:00
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
|
|
|
case int:
|
2019-06-27 12:01:56 -06:00
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-06-27 12:01:56 -06:00
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-06-27 12:01:56 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- fmt2-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-18 08:23:37 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt2 "fmt"
|
2019-06-27 12:01:56 -06:00
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
2019-06-18 08:23:37 -06:00
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
2019-07-02 16:35:35 -06:00
|
|
|
x, y int
|
2019-06-18 08:23:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
2019-07-02 16:35:35 -06:00
|
|
|
return p.x + p.y //@rename("x", "myX")
|
2019-06-18 08:23:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
2019-06-27 12:09:03 -06:00
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
|
|
|
case int:
|
2019-06-27 12:01:56 -06:00
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-06-27 12:01:56 -06:00
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- format-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-18 08:23:37 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
2019-07-02 16:35:35 -06:00
|
|
|
format "fmt"
|
2019-06-27 12:01:56 -06:00
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
2019-06-18 08:23:37 -06:00
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
2019-07-02 16:35:35 -06:00
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
2019-06-18 08:23:37 -06:00
|
|
|
}
|
|
|
|
|
2019-06-27 12:09:03 -06:00
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
format.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-06-27 12:01:56 -06:00
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-06-27 12:01:56 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- log-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-18 08:23:37 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
2019-07-02 16:35:35 -06:00
|
|
|
"log"
|
2019-06-27 12:01:56 -06:00
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
2019-06-18 08:23:37 -06:00
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
2019-06-18 08:23:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
2019-06-27 12:09:03 -06:00
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
|
|
|
case int:
|
2019-06-27 12:01:56 -06:00
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
log.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-06-27 12:01:56 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- myX-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:09:03 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
2019-07-02 16:35:35 -06:00
|
|
|
myX, y int
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
2019-07-02 16:35:35 -06:00
|
|
|
return p.myX + p.y //@rename("x", "myX")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:09:03 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- pos-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:09:03 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
2019-07-02 16:35:35 -06:00
|
|
|
var pos Pos //@rename("p", "pos")
|
|
|
|
_ = pos.Sum() //@rename("Sum", "GetSum")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:09:03 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- y0-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:09:03 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y0 := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:09:03 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y0) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y0) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y0) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- y1-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:09:03 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y1 := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:09:03 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y1) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y1) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y1) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- y2-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:09:03 -06:00
|
|
|
package a
|
|
|
|
|
2019-06-27 12:01:56 -06:00
|
|
|
import (
|
|
|
|
lg "log"
|
2019-07-02 16:35:35 -06:00
|
|
|
"fmt"
|
2019-06-27 12:01:56 -06:00
|
|
|
f2 "fmt"
|
|
|
|
)
|
2019-06-27 12:09:03 -06:00
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y2 := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:09:03 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y2) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:09:03 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y2) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:09:03 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y2) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:01:56 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- y3-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:01:56 -06:00
|
|
|
package a
|
|
|
|
|
|
|
|
import (
|
2019-07-02 16:35:35 -06:00
|
|
|
lg "log"
|
2019-06-27 12:01:56 -06:00
|
|
|
"fmt"
|
|
|
|
f2 "fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
func Random2(y int) int { //@rename("y", "z")
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
switch y3 := x.(type) { //@rename("y", "y0")
|
2019-06-27 12:01:56 -06:00
|
|
|
case int:
|
2019-07-02 16:35:35 -06:00
|
|
|
fmt.Printf("%d", y3) //@rename("y", "y1"),rename("fmt", "format")
|
2019-06-27 12:01:56 -06:00
|
|
|
case string:
|
2019-07-02 16:35:35 -06:00
|
|
|
lg.Printf("%s", y3) //@rename("y", "y2"),rename("lg","log")
|
2019-06-27 12:01:56 -06:00
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y3) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:01:56 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
-- z-rename --
|
2019-07-08 19:53:01 -06:00
|
|
|
random.go:
|
2019-06-27 12:01:56 -06:00
|
|
|
package a
|
|
|
|
|
|
|
|
import (
|
|
|
|
lg "log"
|
|
|
|
"fmt"
|
2019-07-02 16:35:35 -06:00
|
|
|
f2 "fmt"
|
2019-06-27 12:01:56 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func Random() int {
|
|
|
|
y := 6 + 7
|
|
|
|
return y
|
|
|
|
}
|
|
|
|
|
2019-07-02 16:35:35 -06:00
|
|
|
func Random2(z int) int { //@rename("y", "z")
|
|
|
|
return z
|
2019-06-27 12:01:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pos struct {
|
|
|
|
x, y int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Pos) Sum() int {
|
|
|
|
return p.x + p.y //@rename("x", "myX")
|
|
|
|
}
|
|
|
|
|
|
|
|
func _() {
|
|
|
|
var p Pos //@rename("p", "pos")
|
|
|
|
_ = p.Sum() //@rename("Sum", "GetSum")
|
|
|
|
}
|
|
|
|
|
|
|
|
func sw() {
|
|
|
|
var x interface{}
|
|
|
|
|
|
|
|
switch y := x.(type) { //@rename("y", "y0")
|
|
|
|
case int:
|
|
|
|
fmt.Printf("%d", y) //@rename("y", "y1"),rename("fmt", "format")
|
|
|
|
case string:
|
|
|
|
lg.Printf("%s", y) //@rename("y", "y2"),rename("lg","log")
|
|
|
|
default:
|
2019-07-02 16:35:35 -06:00
|
|
|
f2.Printf("%v", y) //@rename("y", "y3"),rename("f2","fmt2")
|
2019-06-27 12:09:03 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|