mirror of
https://github.com/cuigh/swirl
synced 2024-12-31 16:23:13 +00:00
24 lines
499 B
Go
24 lines
499 B
Go
package docker
|
|
|
|
//import (
|
|
// "io/ioutil"
|
|
//
|
|
// "github.com/docker/cli/cli/compose/loader"
|
|
// composetypes "github.com/docker/cli/cli/compose/types"
|
|
//)
|
|
//
|
|
//func getConfigFile(filename string) (*composetypes.ConfigFile, error) {
|
|
// bytes, err := ioutil.ReadFile(filename)
|
|
// if err != nil {
|
|
// return nil, err
|
|
// }
|
|
// config, err := loader.ParseYAML(bytes)
|
|
// if err != nil {
|
|
// return nil, err
|
|
// }
|
|
// return &composetypes.ConfigFile{
|
|
// Filename: filename,
|
|
// Config: config,
|
|
// }, nil
|
|
//}
|