update go.sh
Move operations with hosts into separate class