utils

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

README

utils

A collection of versatile Go utility packages for streamlined development, featuring testing aids, JWT helpers, and more.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(file string) string

Read reads json data from file

func RecorderDelete

func RecorderDelete(path string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)

ContextAndRecorderDelete context and recorder Put method

func RecorderGet

func RecorderGet(path string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)

RecorderForGet recorder for Get method

func RecorderPost

func RecorderPost(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)

ContextAndRecorderPost context and recorder Put method

func RecorderPut

func RecorderPut(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)

ContextAndRecorderPut context and recorder Put method

func RemoveEnterAndTabs

func RemoveEnterAndTabs(s string) string

RemoveEnterAndTabs removes enters and tabs

Types

This section is empty.

Jump to

Keyboard shortcuts

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