因此,這裏的陣列數組類型地圖
parts:[map[content:Phillip,
This section pertains to terminated employees who are paid out in the year following the termination event. The way the tax law works, the tax basis for your share distribution will be based on the closing stock price the day preceding notification to the transfer agent. As such, we will distribute net shares calculating the proper withholding at fair market value the day prior to notifying the transfer agent. We will be distributing the shares reflected on your 9/30/01 statement (6,606 shares plus cash for fractional shares). If you would prefer to settle the taxes with a personal check, we can distribute gross shares. Please let me know you preference.
As you know, we are in the process of transferring recordkeeping services from NTRC to Hewitt. As such, we have a CPA, Larry Lewis, working with us to audit and set up transition files. He has become our department expert on the PSA account (much more knowledgeable than myself) and the various plan provision amendments. If you would like, we can set up a conference call with you, myself, and Larry to go over the payment methodology. Please let me know a date and time that is convenient for you.
Thanks,
Renee
-----Original Message-----
From: Allen, Phillip K.
Sent: Thursday, November 01, 2001 8:26 AM
To: Ratcliff, Renee
Subject:
Renee,
Thank you for digging in to the issue of Deferred Phantom Stock Units. It is clear that the payment will be made in shares. However, I still don't understand which date will be used to determine the value and calculate how many shares. The plan document under VII. Amount of Benefit Payments reads "The value of the shares, and resulting payment amount will be based on the closing price of Enron Corp. common stock on the January 1 before the date of payment, and such payment shall be made in shares of Enron Corp. common stock." Can you help me interpret this statement and work through the numbers on my account.
Thank you,
Phillip Allen
contentType:text/plain]]
我遇到試圖像
t := v["parts"][0].(map[string]interface{})
到「內容」我已經嘗試的事情,但這並沒有因爲工作的問題以及其他一些讓我進一步深入兔子洞的事情。
這些部分位於另一個映射字符串接口的內部。
這是我不斷收到
panic: interface conversion: interface is []interface {}, not map[string]interface {}
這裏是JSON對象我解析錯誤。
{
"X-cc": "",
"From": "[email protected]",
"X-Folder": "\\PALLEN (Non- Privileged)\\Allen, Phillip K.\\Inbox",
"Content-Transfer-Encoding": "7bit",
"X-bcc": "", "X-Origin": "Allen-P",
"To": ["[email protected]"],
"parts": [{
"content": "Phillip,\r\n\r\nThis section pertains to terminated employees who are paid out in the year following the termination event. The way the tax law works, the tax basis for your share distribution will be based on the closing stock price the day preceding notification to the transfer agent. As such, we will distribute net shares calculating the proper withholding at fair market value the day prior to notifying the transfer agent. We will be distributing the shares reflected on your 9/30/01 statement (6,606 shares plus cash for fractional shares). If you would prefer to settle the taxes with a personal check, we can distribute gross shares. Please let me know you preference.\r\n\r\nAs you know, we are in the process of transferring recordkeeping services from NTRC to Hewitt. As such, we have a CPA, Larry Lewis, working with us to audit and set up transition files. He has become our department expert on the PSA account (much more knowledgeable than myself) and the various plan provision amendments. If you would like, we can set up a conference call with you, myself, and Larry to go over the payment methodology. Please let me know a date and time that is convenient for you.\r\n\r\nThanks,\r\n\r\nRenee\r\n\r\n -----Original Message-----\r\nFrom: \tAllen, Phillip K. \r\nSent:\tThursday, November 01, 2001 8:26 AM\r\nTo:\tRatcliff, Renee\r\nSubject:\t\r\n\r\nRenee,\r\n\r\nThank you for digging in to the issue of Deferred Phantom Stock Units. It is clear that the payment will be made in shares. However, I still don't understand which date will be used to determine the value and calculate how many shares. The plan document under VII. Amount of Benefit Payments reads \"The value of the shares, and resulting payment amount will be based on the closing price of Enron Corp. common stock on the January 1 before the date of payment, and such payment shall be made in shares of Enron Corp. common stock.\" Can you help me interpret this statement and work through the numbers on my account.\r\n\r\nThank you,\r\n\r\nPhillip Allen\r\n\r\n",
"contentType": "text/plain"}],
"X-FileName": "PALLEN (Non-Privileged).pst",
"Mime-Version": "1.0",
"X-From": "Ratcliff, Renee </O=ENRON/OU=NA/CN=RECIPIENTS/CN=RRATCLI>",
"Date": {"$date": 1004725111000},
"X-To": "Allen, Phillip K. </O=ENRON/OU=NA/CN=RECIPIENTS/CN=Pallen>",
"Message-ID": "<[email protected]>",
"Content-Type": "text/plain; charset=us-ascii", "Subject": "RE:"
}
這是代碼。
http://play.golang.org/p/rJPTjvoM_t
這是安然電子郵件從早在2011年或類似的東西時,整個醜聞是怎麼回事。 –