ssi-core

module
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT

README

Ssi Core

It is a microservice core package developed with Golang.

It is a repository that treats repetitive code as a basis in an already developed microservice application. It has been made public as an example. You can report the missing aspects to me as an issue or send a PR.

Technologies

Packages

Installation

go get github.com/ssibrahimbas.com/ssi-core

Usage

package main

import(
	"github.com/ssibrahimbas/ssi-core/pkg/http"
	"github.com/ssibrahimbas/ssi-core/pkg/i18n"
	"log"
)

func main() {
    i := i18n.New("tr")
	i.LoadLanguages("./locales", "tr", "en")
	h := http.New(i)
    h.Post("/login", func(c *fiber.Ctx) error {
        return c.JSON(fiber.Map{"message": "Hello, World!"})
    })
	log.Fatal(a.Http.Listen(":8080"))
}

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

Directories

Path Synopsis
pkg
db
jwt

Jump to

Keyboard shortcuts

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