package main

import (
	"io/ioutil"
	"encoding/json"
)

type FtpTransferInfo struct
{
	ServerAddr string 
	Port int64 
	Id string
	Pw string
	Remote string
	SourceDir string
	FileFilter string
	RenameDir string
	LogFileNameWithoutExtension string
}

func main() {
	ftpInfo := FtpTransferInfo{
		ServerAddr: "pdjj14.synology.me",
		Port: 21,
		Id: "pdjj14",
		Pw: "Hanjaejoong14!",
		Remote: "/home/temp",
		SourceDir: ".\\",
		FileFilter: "*.icp",
		RenameDir: "transferred\\",
		LogFileNameWithoutExtension: "log.txt"}

	file, _ := json.MarshalIndent(ftpInfo, "", "")

	_ = ioutil.WriteFile("test.json", file, 0644)
}

// type Salary struct {
//         Basic, HRA, TA float64
//     }
 
// type Employee struct {
// 	FirstName, LastName, Email string
// 	Age                        int
// 	MonthlySalary              []Salary
// }
 
// func main() {
// 	data := Employee{
//         FirstName: "Mark",
//         LastName:  "Jones",
//         Email:     "mark@gmail.com",
//         Age:       25,
//         MonthlySalary: []Salary{
//             Salary{
//                 Basic: 15000.00,
//                 HRA:   5000.00,
//                 TA:    2000.00,
//             },
//             Salary{
//                 Basic: 16000.00,
//                 HRA:   5000.00,
//                 TA:    2100.00,
//             },
//             Salary{
//                 Basic: 17000.00,
//                 HRA:   5000.00,
//                 TA:    2200.00,
//             },
//         },
//     }
 
// 	file, _ := json.MarshalIndent(data, "", " ")
 
// 	_ = ioutil.WriteFile("test.json", file, 0644)
// }