Skip to content

meteormin/go-restapi

Repository files navigation

go-restapi

go fiber with rest api

install

go get -u github.com/miniyus/go-restapi

usage

package main

import "github.com/miniyus/go-restapi"

// new Handler
h = restapi.NewHandler[TestEntity, *TestReq, *TestRes](
    &TestReq{},
	// new service
	restapi.NewService[TestEntity, *TestReq, *TestRes](
        // new repository
        restapi.NewRepository[TestEntity](db, TestEntity{}),
        &TestRes{},
    ),
)

About

go fiber rest api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages