💾 Archived View for source.community › Fuwn › space › raw › main › content.go captured on 2024-02-05 at 09:57:11.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

// Copyright (C) 2021-2021 Fuwn
// SPDX-License-Identifier: GPL-3.0-only

package main

func GetContent(file string) string {
	contents, err := contentFilesystem.ReadFile("content/" + file)

	if err != nil {
		return `# ERROR READING FILE

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!`
	}

	return string(contents)
}