Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

LucasRoesler/golang-http-template-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Go functions

The functions are example and basic "smoke tests" for the golang-http templates

faas-cli template pull https://github.com/LucasRoesler/golang-http-template#feat-revert-to-bash-scripts
faas-cli build

Examples:

  1. publisher is an example go-http function that publishes messages to a NATS subject. This function demonstrates using a. external public packages: github.com/nats-io/nats.go and github.com/openfaas/templates-sdk/go-http b. it contains a named subpackage pkg/version

  2. quoter is an example go-http-middleware function that echos the input in quotes. This function demonstrates using a. local replace statements in the handler go.mod file b. a function that logs

  3. jules is an example go-http-middleware function that echos the user input like Jules from Pulp Fiction: "Say {input} one more time!". This function demonstrates a. using vendoring b. a function that logs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages