Реализация программного интерфейсом пакетного режима работы с 1С:Предприятием 8.x
package main
import "github.com/v8platform/api"
func main() {
infobase := v8.NewFileIB("./infobase")
//infobase := v8.NewServerIB("app", "demobase")
what := v8.LoadCfg("./1cv8.cf")
//what := v8.DumpCfg("./1cv8.cf)
//what := v8.DumpIB("./1cv8.dt)
err := v8.Run(infobase, what)
//err := v8.Run(infobase, what)
//err := v8.Run(infobase, what, v8.WithTimeout(1), v8.WithPath("path-to-exe"))
//err := v8.Run(infobase, what, v8.WithCredentials("infobase-user","pwd"), v8.WithUnlockCode("123"))
if err != nil {
println(err.Error())
}
}