whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package dirio
|
||||
|
||||
type SomeType struct {
|
||||
X int
|
||||
}
|
||||
|
||||
var A string = "something"
|
||||
|
||||
func SomeFunction() {
|
||||
println("hello world")
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package ioio
|
||||
|
||||
type SomeOtherType struct {
|
||||
Y int
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package pkg
|
||||
|
||||
var A = 0
|
||||
|
||||
type SomeType struct {
|
||||
X float64
|
||||
}
|
||||
|
||||
func (s *SomeType) AMethod(x int) int {
|
||||
return x + 3
|
||||
}
|
||||
|
||||
func (s *SomeType) AnotherMethod(x int) int {
|
||||
return x + 4
|
||||
}
|
||||
|
||||
var SomeVar SomeType
|
||||
|
||||
const (
|
||||
SomeConst int = 2
|
||||
)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package realname
|
||||
|
||||
type SomeType struct {
|
||||
A bool
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package pkg
|
||||
|
||||
var A = 1
|
||||
|
||||
type SomeType struct {
|
||||
X int
|
||||
Y int
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package pluginsupport
|
||||
|
||||
type Something interface {
|
||||
Callback(int) int
|
||||
}
|
||||
|
||||
type SomethingElse interface {
|
||||
Callback2(int, int) float64
|
||||
}
|
||||
Reference in New Issue
Block a user