V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · 3264 views
    This topic created in 2409 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   ·   1214 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:11 · PVG 01:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.