github.com/relnod/pegomock@v2.0.1+incompatible/pegomock/testutil/io.go (about) 1 package testutil 2 3 import ( 4 "io/ioutil" 5 6 . "github.com/onsi/gomega" 7 ) 8 9 func WriteFile(filepath string, content string) { 10 Expect(ioutil.WriteFile(filepath, []byte(content), 0644)).To(Succeed()) 11 }