Skip to content

go-lanai is an application frameworks and a set of modules that make writing applications easy

License

Notifications You must be signed in to change notification settings

cisco-open/go-lanai

go-lanai

Tests Coverage Apache 2.0

go-lanai is an application frameworks and a set of modules that make writing applications easy. It provides everything you need to embrace go-lang in an enterprise environment. You can use it for many kinds of architectures depending on your need, from microservice to standalone application.

go-lanai is inspired by the Spring framework and the family of Spring projects. Developers looking to port a Spring application to go-lang can use go-lanai as a feature by feature replacement of Spring in most cases.

go-lanai's dependency injection functionality is provided by uber-go/fx. Basic understanding of dependency injection is helpful when using go-lanai.

Examples

  • The auth example is a web service that can serve as the Oauth2 authorization server.
  • The data example is a web service that stores and retrieves data from the database.
  • In the skeleton example, we demonstrate how to create a service from scratch using an OpenAPI spec.
  • In the opa example, we create a web service that uses open policy agent for RBAC.

Tutorials

  • The web app security tutorial shows you how to build a web application with a private API, while using SAML sign on as the authentication method.

Documentations

Documentation for go-lanai Modules

Explore the go-lanai modules:

Contributing to go-lanai

Thanks for your interest in contributing! There are many ways to contribute to this project.

Get started with our Contributing Guide (WIP).

Please note that our contributing guide is still "work in progress".