Check out example codes for "go static server". It will help you in understanding the concepts better.

Code Example 1

package main

import (
  "log"
  "net/http"
)

func main() {
  fs := http.FileServer(http.Dir("./static"))
  http.Handle("/", fs)

  log.Println("Listening on :3000...")
  err := http.ListenAndServe(":3000", nil)
  if err != nil {
    log.Fatal(err)
  }
}

Learn ReactJs, React Native from akashmittal.com