golang

module
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT

README

golang

Golang lib is a programming toolkit for building microservices in Go. It has very useful interface or service to develop application.

To start using golang

To make use web server of golang, also golang has very useful libs, It speeds up your development.

import (
	"testing"

	"context"

	viper_ "github.com/kaydxh/golang/pkg/viper"
	webserver_ "github.com/kaydxh/golang/pkg/webserver"
)

func main() {
	cfgFile := "./webserver.yaml"
	config := webserver_.NewConfig(webserver_.WithViper(viper_.GetViper(cfgFile, "web")))

	s, err := config.Complete().New()
	if err != nil {
		t.Errorf("failed to new config err: %v", err)
	}
	s.InstallWebHandlers()
	prepared, err := s.PrepareRun()
	if err != nil {
		t.Errorf("failed to PrepareRun err: %v", err)
	}

	prepared.Run(context.Background())
}

Evolution

Golang started in Oct 8, 2020.

Contributing

If you need support, start with your branch, and create a pull request for us. We appreciate your help!

Directories

Path Synopsis
go
crypto/aes
MIT License
MIT License
io
net
os
pkg
app
grpc-gateway/date
Package date is a reverse proxy.
Package date is a reverse proxy.

Jump to

Keyboard shortcuts

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