hariprasadraja
10/3/2019 - 5:58 AM

go file change owner

changes the owner and the group of the file

	// Change ownership
	err = os.Chown("test.txt", os.Getuid(), os.Getgid())
	if err != nil {
		log.Println(err)
	}