The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
leisurelylicht

求问, go 里如何实现 Python 中的 decode("string-escape")

  •  1
     
  •   leisurelylicht · Sep 29, 2019 · 3622 views
    This topic created in 2601 days ago, the information mentioned may be changed or developed.

    请问在 go 里面怎么才能做到类似 python 的 decode("string-escape") 和 decode("unicode-escape")。

    2 replies  •  2019-09-30 10:54:59 +08:00
    codehz
    codehz
    Sep 29, 2019 via Android
    1
    strconv.Unquote?
    leisurelylicht
    leisurelylicht
    OP
    Sep 30, 2019
    2
    @codehz 应该不是,用 strconv.Unquote 去解码会报错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2470 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:48 · PVG 18:48 · LAX 02:48 · JFK 05:48
    ♥ Do have faith in what you're doing.