Categorygithub.com/miniyus/go-restapi
repositorypackage
0.0.0-20230826084440-52655bedd447
Repository: https://github.com/miniyus/go-restapi.git
Documentation: pkg.go.dev

# README

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{},
    ),
)