Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Empty = []byte{}
Empty represents an empty byte slice. It can be used as a placeholder or default value where a byte slice is required but no data is provided.
Functions ¶
func New ¶
New creates and returns a new Request and Response pair with a unique ID. It utilizes the UUID library to generate a unique identifier for each request-response pair. The Response is initialized with a default status of 204 (No Content) and the same ID as the Request.
Returns: - *Request: A pointer to a newly created Request object with a unique ID. - *Response: A pointer to a newly created Response object with a status of 204 and the same ID as the Request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.