1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00:00

Add a simple test for external renderer (#20033)

Fix #16402
This commit is contained in:
Lunny Xiao
2022-12-12 20:45:21 +08:00
committed by GitHub
parent 6398ca745a
commit 36a2d2f919
24 changed files with 178 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
// gobuild: external_renderer
package main
import (
"fmt"
"io"
"os"
)
func main() {
if len(os.Args) > 1 {
fmt.Print(os.Args[1])
} else {
_, err := io.Copy(os.Stdout, os.Stdin)
if err != nil {
fmt.Println(err)
}
}
}