Files
fission-console/examples/go-hello/code/handler.go
T

15 lines
414 B
Go

package main
import (
"fmt"
"net/http"
)
// Handler — точка входа для Fission go-env.
// Go builder компилирует этот файл в .so плагин,
// go-env загружает его через plugin.Open().
func Handler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(w, "Hello from real Go in Fission (builder pipeline)")
}