Imports github.com/snapcore/snapd/dirs github.com/snapcore/snapd/logger github.com/snapcore/snapd/osutil github.com/snapcore/snapd/snap github.com/snapcore/snapd/systemd github.com/snapcore/snapd/timeout Standard library imports bufio bytes fmt io/ioutil os os/exec path/filepath strings text/template time