Check out example codes for "how to find diffeence between tow file paths in golang". It will help you in understanding the concepts better.

Code Example 1

package main
import (
  "io/ioutil"
  "bytes"
  "fmt"
)
func main(){
  one, err := ioutil.ReadFile("one.txt")
  if err != nil{
    panic(err)
  }
  two, err2 := ioutil.ReadFile("two.txt")
  if err2 != nil{
    panic(err2)
  }
  same := bytes.Equal(one, two)
  fmt.Println(same)
}

Learn ReactJs, React Native from akashmittal.com