Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

humaniq/easy-sdk-go

Repository files navigation

easy-sdk-go Build Status

A set of simple functions to make life easier.

Install

go get -u "github.com/personal-security/easy-sdk-go"

Finctions

Listing functions is dev.

Example Rest Answer

package controllers

import (
    "net/http"
    "rest-api/models"

    "github.com/gorilla/mux"
    easysdk "github.com/personal-security/easy-sdk-go"
)

var StatusGetNow = func(w http.ResponseWriter, r *http.Request) {
    // CODE

    resp := &easysdk.RespondApi{}
    resp.Create(true, "Success")
    resp.Respond(w)
}

or

package controllers

import (
    "net/http"
    "rest-api/models"

    "github.com/gorilla/mux"
    easysdk "github.com/personal-security/easy-sdk-go"
)

var StatusGetNow = func(w http.ResponseWriter, r *http.Request) {
    // CODE

    easysdk.GenerateApiRespond(w,true,"Success",nil)
}

Links

pkg.go.dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages