Skip to content

Simple example how to build modular golang application using AWS Lambda Layers.

Notifications You must be signed in to change notification settings

kpiotrowski/golang_modular_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang_modular_app

Simple example how to build modular golang application.

Plugin description

Example plugin implements 2 encryption algorithms : Caesar and Verman.

It exports 3 symbols:

  • EncryptCaesar(int, string) - function to encrypt text using Caesar cipher
  • DecryptCaesar(int, string) - function to decrypt text using Caesar cipher
  • VermanCipher - variable of type vermanCipher that implements 2 methods:
    • Encrypt(string) string
    • Decrypt() (*string, error)

Compile & Run

To compile plugin run:

go build -buildmode=plugin -o plugin/cipher.so plugin/cipher.go

To compile exmaple app run:

go build app.go

To run app:

./app

About

Simple example how to build modular golang application using AWS Lambda Layers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages