The highest tagged major version is
v2.
package
Version:
v1.10.0
Opens a new window with list of versions in this module.
Published: Jul 2, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AccessLevel struct {
Role string `json:"role,omitempty"`
}
type Error struct {
Message string `json:"message" pact:"example=user not found"`
}
type Order struct {
ID int `json:"id" pact:"example=42"`
Item string `json:"item" pact:"example=apple,regex=(apple|orange)"`
}
type User struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Access []AccessLevel `json:"access,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.