jpath

package
v1.1.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package jpath is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(val interface{}, paths ...Path) map[string]interface{}

Read 读取指定路径上的值,并返回这些值的集合。

Types

type JsonPath

type JsonPath struct {
	// contains filtered or unexported fields
}

func (*JsonPath) Read

func (p *JsonPath) Read(val interface{}) map[string]interface{}

Read 读取指定路径上的值,并返回这些值的集合。

type MockPath

type MockPath struct {
	// contains filtered or unexported fields
}

MockPath is a mock of Path interface.

func NewMockPath

func NewMockPath(ctrl *gomock.Controller) *MockPath

NewMockPath creates a new mock instance.

func (*MockPath) EXPECT

func (m *MockPath) EXPECT() *MockPathMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPath) Read

func (m *MockPath) Read(val interface{}) map[string]interface{}

Read mocks base method.

type MockPathMockRecorder

type MockPathMockRecorder struct {
	// contains filtered or unexported fields
}

MockPathMockRecorder is the mock recorder for MockPath.

func (*MockPathMockRecorder) Read

func (mr *MockPathMockRecorder) Read(val interface{}) *gomock.Call

Read indicates an expected call of Read.

type Path

type Path interface {
	Read(val interface{}) map[string]interface{}
}

func Compile

func Compile(expr string) Path

Compile 预编译 JSON 路径表达式。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL