mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
format testscript files with gofmt
This commit is contained in:
3
testdata/script/plugin.txtar
vendored
3
testdata/script/plugin.txtar
vendored
@@ -37,10 +37,12 @@ var PublicVar int = lib.ImportedFunc()
|
||||
func privateFunc(n int) { println("Hello, number", n) }
|
||||
|
||||
func PublicFunc() { privateFunc(PublicVar) }
|
||||
|
||||
-- plugin/lib/lib.go --
|
||||
package lib
|
||||
|
||||
func ImportedFunc() int { return 4 }
|
||||
|
||||
-- main.go --
|
||||
package main
|
||||
|
||||
@@ -62,5 +64,6 @@ func main() {
|
||||
*v.(*int) = 7
|
||||
f.(func())()
|
||||
}
|
||||
|
||||
-- main.stderr --
|
||||
Hello, number 7
|
||||
|
||||
Reference in New Issue
Block a user