code.gitea.io/gitea@v1.21.7/build/test-echo.go (about)

     1  // Copyright 2023 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  //go:build ignore
     5  
     6  package main
     7  
     8  import (
     9  	"fmt"
    10  	"io"
    11  	"os"
    12  )
    13  
    14  func main() {
    15  	_, err := io.Copy(os.Stdout, os.Stdin)
    16  	if err != nil {
    17  		fmt.Fprintf(os.Stderr, "Error: %v", err)
    18  		os.Exit(1)
    19  	}
    20  }