Question: when did walt whitman wrote o captain my captain
Answer: `` O Captain ! My Captain ! '' is an extended metaphor poem written in 1865 by Walt Whitman , about the death of American president Abraham Lincoln .