mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
23
tools/external_renderer.go
Normal file
23
tools/external_renderer.go
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user