Experimental browser for the Atmosphere
{ "uri": "at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo.pull/3lmu4bs24j722", "cid": "bafyreidt23bqjk5cufypktf6p7j7rwkntfqulcxs5krvbuop74seu3lir4", "value": { "$type": "sh.tangled.repo.pull", "patch": "diff --git a/main.go b/main.go\nindex 16e2b22..794eebb 100644\n--- a/main.go\n+++ b/main.go\n@@ -1,5 +1,11 @@\n package main\n \n+// generic function to add two numbers\n+func add[T int | float64](a, b T) T {\n+\treturn a + b\n+}\n+\n func main() {\n-\tprintln(\"Hello, World!\")\n+\t// This is a simple Go program that adds two numbers and prints the result\n+\tprintln(add(3, 4))\n }\n", "title": "add two numbers", "pullId": 11, "targetRepo": "at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo/3llmbkfueu522", "targetBranch": "main" } }