FIX GO_LINT

This commit is contained in:
YDZ
2019-07-08 20:22:09 +08:00
parent 777215785f
commit 55fd5c091c
162 changed files with 435 additions and 447 deletions

View File

@@ -6,7 +6,7 @@ type MyStack struct {
}
/** Initialize your data structure here. */
func Constructor_225() MyStack {
func Constructor225() MyStack {
return MyStack{[]int{}, []int{}}
}

View File

@@ -6,18 +6,18 @@ import (
)
func Test_Problem225(t *testing.T) {
obj := Constructor_225()
obj := Constructor225()
fmt.Printf("obj = %v\n", obj)
param_5 := obj.Empty()
fmt.Printf("param_5 = %v\n", param_5)
param5 := obj.Empty()
fmt.Printf("param_5 = %v\n", param5)
obj.Push(2)
fmt.Printf("obj = %v\n", obj)
obj.Push(10)
fmt.Printf("obj = %v\n", obj)
param_2 := obj.Pop()
fmt.Printf("param_2 = %v\n", param_2)
param_3 := obj.Top()
fmt.Printf("param_3 = %v\n", param_3)
param_4 := obj.Empty()
fmt.Printf("param_4 = %v\n", param_4)
param2 := obj.Pop()
fmt.Printf("param_2 = %v\n", param2)
param3 := obj.Top()
fmt.Printf("param_3 = %v\n", param3)
param4 := obj.Empty()
fmt.Printf("param_4 = %v\n", param4)
}