1 | package main |
1 | package main |
1 | s := "hello" |
What to do if you want to declare a multi -line string?able to pass`To declare:
1 | m := `hello |
` The string of the included isRawString,即String在代码中of形式就是打印时of形式,It has no character righteousness,Change will also output the original as the original
错误type
GoThere is a built -inerrortype,Specially used to process error information,GoofpackageThere is also a bag in iterrorsTo deal with errors:
1 | err := errors.New("emit macho dwarf: elf header corrupted") |