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 · 3312 views
    This topic created in 2429 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   ·   Solana   ·   1075 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
    ♥ Do have faith in what you're doing.