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 · 3544 views
    This topic created in 2561 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
        1
    codehz  
       Sep 29, 2019 via Android
    strconv.Unquote?
    leisurelylicht
        2
    leisurelylicht  
    OP
       Sep 30, 2019
    @codehz 应该不是,用 strconv.Unquote 去解码会报错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2344 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 02:23 · PVG 10:23 · LAX 19:23 · JFK 22:23
    ♥ Do have faith in what you're doing.