Skip to content

can get the result If the expression is to determine that the Numbers are equal #39

@liov

Description

@liov
func Test(t *testing.T) {
	user := struct {
		ID int
		Name string
	}{
		ID:1,
		Name:"a",
	}
	users := []interface{}{user}
	res, _ := jmespath.Search("[?ID=='1']", users)
	fmt.Println(res)
}

=== RUN Test
[]
--- PASS: Test (0.00s)
PASS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions