The test case package e2e of fabric-sdk-go has 3 test cases: e2e, configless and orgs. The e2e test case first creates a channel mychannel in the network, and then installs a chain code example_cc.
Modify it. Before creating a channel, check whether the specified channel exists.