aboutsummaryrefslogtreecommitdiffstats
path: root/tools/external_renderer.go
blob: c1fcc78f50b9e7622857ffc7c93b860f1abca31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
		}
	}
}