๐พ Archived View for source.community โบ Fuwn โบ space โบ blob โบ main โบ content.go captured on 2023-04-26 at 13:26:05. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2023-01-29)
โก๏ธ Next capture (2024-02-05)
-=-=-=-=-=-=-
. ,-. ,-. . . ,-. ,-. ,-. ,-. ,-. ,-,-. ,-,-. . . ,-. . |- . . `-. | | | | | | |-' | | | | | | | | | | | | | | | | | `-' `-' `-^ ' `-' `-' :: `-' `-' ' ' ' ' ' ' `-^ ' ' ' `' `-| /| `-'
git clone https://source.community/Fuwn/space.git
View raw contents of /content.go (main)
โโโโโฎ 1โ // Copyright (C) 2021-2021 Fuwn 2โ // SPDX-License-Identifier: GPL-3.0-only 3โ 4โ package main 5โ 6โ func GetContent(file string) string { 7โ contents, err := contentFilesystem.ReadFile("content/" + file) 8โ 9โ if err != nil { 10โ return `# ERROR READING FILE 11โ 12โ I seem to be having some trouble reading the contents of the "` + file + `" file... Try refreshing the page and if the problem persists, contact Fuwn!` 13โ } 14โ 15โ return string(contents) 16โ } โโโโโฏ
ยท ยท ยท
ยฉ 2023 source.community