Documentation ¶
Index ¶
- func Delete(url string, header et.Json) (*Body, Status)
- func Get(url string, header et.Json) (*Body, Status)
- func Options(url string, header et.Json) (*Body, Status)
- func Patch(url string, header, body et.Json) (*Body, Status)
- func Post(url string, header, body et.Json) (*Body, Status)
- func Put(url string, header, body et.Json) (*Body, Status)
- type Body
- func (b Body) ToArrayJson() ([]et.Json, error)
- func (b Body) ToBool() (bool, error)
- func (b Body) ToFloat() (float64, error)
- func (b Body) ToInt() (int, error)
- func (b Body) ToInt64() (int64, error)
- func (b Body) ToJson() (et.Json, error)
- func (b Body) ToString() string
- func (b Body) ToTime() (time.Time, error)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Body ¶ added in v1.0.22
type Body struct {
// contains filtered or unexported fields
}
* * Body struct to convert the body response *
func ReadBody ¶ added in v1.0.22
func ReadBody(body io.ReadCloser) (*Body, error)
* * ReadBody reads the body response * @param body io.ReadCloser * @return *Body * @return error *
func (Body) ToArrayJson ¶ added in v1.0.22
* * ToArrayJson returns a Json array object * @return []et.Json *
Click to show internal directories.
Click to hide internal directories.