package main import ( "fmt" "net/http" "flag" "log" "net/url" "strings" "io/ioutil" ) func main() { var endpoint = flag.String("endpoint", "", "check target Endpoint URL") var lineToken = flag.String("token", "", "LINE notify token") flag.Parse() var apiResult = getAPI(*endpoint) var result = postLINE(*lineToken, apiResult) fmt.Printf("LINE Post result [%t]\n", result) } func getAPI(endpoint strin