func cgiMain() { … } // testCGI is a CGI program translated from a Perl program to complete host_test. // test cases in host_test should be provided by testCGI. func testCGI() { … } type neverEnding … func (b neverEnding) Read(p []byte) (n int, err error) { … } // childCGIProcess is used by integration_test to complete unit tests. func childCGIProcess() { … }