mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-15 10:12:29 +08:00
add govet check to github action file
This commit is contained in:
@@ -8,10 +8,10 @@ import (
|
||||
|
||||
type (
|
||||
Person struct {
|
||||
Name string `json:"name"`
|
||||
Age int `json:"age"`
|
||||
Phone string `json:"phone"`
|
||||
Addr Address `json:"address"`
|
||||
Name string `json:"name"`
|
||||
Age int `json:"age"`
|
||||
Phone string `json:"phone"`
|
||||
Address Address `json:"address"`
|
||||
}
|
||||
|
||||
Address struct {
|
||||
@@ -41,8 +41,8 @@ func TestStructType(t *testing.T) {
|
||||
assert.Equal(src["name"], p.Name)
|
||||
assert.Equal(src["age"], p.Age)
|
||||
assert.Equal(src["phone"], p.Phone)
|
||||
assert.Equal("test", p.Addr.Street)
|
||||
assert.Equal(1, p.Addr.Number)
|
||||
assert.Equal("test", p.Address.Street)
|
||||
assert.Equal(1, p.Address.Number)
|
||||
}
|
||||
|
||||
func TestBaseType(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user