1. Home
  2. /
  3. Fission
  4. /
  5. Go Function with Query Param

Go Function with Query Param - Fission Typing CST Test

Loading…

Go Function with Query Param — Fission Code

A Go HTTP function that reads a query parameter and responds.

# fission/demo/go_query.yaml
apiVersion: fission.io/v1
kind: Function
metadata:
	name: greet-go
	namespace: default
spec:
	environment:
		name: go
		runtime: go
	code:
		inline:
		function: |
		package main
		import (
		"fmt"
		"net/http"
		)
		func Handler(w http.ResponseWriter, r *http.Request) {
		name := r.URL.Query().Get("name")
		if name == "" { name = "Guest" }
		fmt.Fprintf(w, "Hello, %s!", name)
		}
	routes:
		- path: /greet
		method: GET

Fission Language Guide

Fission is a serverless framework for Kubernetes that allows developers to deploy functions quickly without managing infrastructure. It focuses on fast, event-driven, and scalable function execution.

Primary Use Cases

  • ▸Serverless microservices
  • ▸Event-driven functions for Kubernetes apps
  • ▸REST API endpoints
  • ▸Cron-based background jobs
  • ▸Data processing pipelines triggered by messages

Notable Features

  • ▸Zero-configuration deployment
  • ▸Automatic scaling of functions
  • ▸Supports multiple language runtimes
  • ▸Event-driven architecture
  • ▸Integration with Kubernetes ecosystem

Origin & Creator

Fission was created by Platform9 Systems in 2017 as an open-source serverless framework for Kubernetes.

Industrial Note

Fission is particularly suited for teams already running Kubernetes who want lightweight, event-driven serverless functions without managing containers manually.

More Fission Typing Exercises

Simple Fission Function (Go)Python HTTP FunctionNode.js Function ExamplePython Function with POST BodyNode.js Function with ParamsGo JSON Response FunctionPython Environment VariablesNode.js POST JSON Function

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher