golangテストコード 構造体の中身があるかないかでファンクションの中身をパクる
// go get github.com/lib/pq を忘れずに
package main
import (
	"fmt"
	_ "github.com/lib/pq"
)
// GetLoc GetLoc
type GetLoc struct {
	ID    int     `json:"id"`
	Lat   float64 `json:"lat"`
	Lng   float64 `json:"lng"`
	TYPE  string  `json:"type"` // "USER","BUS","CONTROL
	POPUP int     `json:"popup"`
	//Address string  `json:"address"`
}
func person(gl2, gl3 *GetLoc) {
	if gl2.Lng > 0.0 {
		fmt.Println("pass1", gl2)
	} else {
		fmt.Println("pass2", gl2)
	}
}
func person_real() {
	var gl2, gl3 GetLoc
	gl2.Lng = 139.00
	person(&gl2, &gl3)
}
func main() {
	var gl2, gl3 GetLoc
	person(&gl2, &gl3)
	person_real()
}