github.com/kaydxh/golang@v0.0.131/README.md (about)

     1  # golang
     2  Golang lib is a programming toolkit for building microservices in Go. It has very useful interface or service to develop application.
     3  # To start using golang
     4  To make use web server of golang, also golang has very useful libs, It speeds up your development.
     5  ```
     6  import (
     7  	"testing"
     8  
     9  	"context"
    10  
    11  	viper_ "github.com/kaydxh/golang/pkg/viper"
    12  	webserver_ "github.com/kaydxh/golang/pkg/webserver"
    13  )
    14  
    15  func main() {
    16  	cfgFile := "./webserver.yaml"
    17  	config := webserver_.NewConfig(webserver_.WithViper(viper_.GetViper(cfgFile, "web")))
    18  
    19  	s, err := config.Complete().New()
    20  	if err != nil {
    21  		t.Errorf("failed to new config err: %v", err)
    22  	}
    23  	s.InstallWebHandlers()
    24  	prepared, err := s.PrepareRun()
    25  	if err != nil {
    26  		t.Errorf("failed to PrepareRun err: %v", err)
    27  	}
    28  
    29  	prepared.Run(context.Background())
    30  }
    31  ```
    32  
    33  # Evolution
    34  Golang started in Oct 8, 2020. 
    35  
    36  # Contributing
    37  If you need support, start with your branch, and create a pull request for us. We appreciate your help!