/sample-functions-golang-random

A sample function that returns a random number.

Primary LanguageGo

Sample Function: Go "Random"

Introduction

This repository contains a sample "Random" function written in Go. You can deploy it on DigitalOcean's App Platform as a Serverless Function component.

Note: This feature is currently in a limited beta release. Following these steps may result in charges for the use of DigitalOcean services.

Requirements

Deploying the Function

During the beta, documentation for Serverless Functions will be available to beta participants only in the Serverless Functions Closed Beta Google Doc. Please refer to this document for instructions on how to deploy Serverless Functions in App Platform.

Using the Function

Accessing the function will return a random number from 0 to 100.

Learn More

You can learn more about App Platform and how to manage and update your application in the official App Platform Documentation.