package main import ( "fmt" "strings" ) func main() { line := "hello\n" line = strings.TrimSuffix(line, "\n") // remove newline fmt.
確定! 回上一頁