digitalocean/sample-functions-golang-random-1
forked from digitalocean/sample-functions-golang-random
Captured source
source ↗digitalocean/sample-functions-golang-random-1
Description: A sample function that returns a random number.
Language: Go
Stars: 0
Forks: 2
Open issues: 0
Created: 2022-08-18T23:00:39Z
Pushed: 2025-04-28T19:19:39Z
Default branch: main
Fork: yes
Parent repository: digitalocean/sample-functions-golang-random
Archived: yes
README: > ⚠️ This repository is archived and kept for reference purposes only. > It is no longer maintained and will not receive updates or support.
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](https://docs.digitalocean.com/products/platform/product-lifecycle/#beta). Following these steps may result in charges for the use of DigitalOcean services.
Requirements
- You need a DigitalOcean account. If you don't already have one, you can sign up at https://cloud.digitalocean.com/registrations/new.
- You need to have access to the beta release of App Platform Serverless Functions. You can sign up for notifications about beta and early access releases using this form.
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.