github.com/devcamcar/cli@v0.0.0-20181107134215-706a05759d18/test/simplefunc/func.go (about)

     1  package main
     2  
     3  import (
     4  	"context"
     5  	"io"
     6  	"github.com/fnproject/fdk-go"
     7  )
     8  
     9  func main() {
    10  	fdk.Handle(fdk.HandlerFunc(func(_ context.Context, in io.Reader, out io.Writer) {
    11  		out.Write([]byte("hello world"))
    12  	}))
    13  }