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 · 3405 views
    This topic created in 2473 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   ·   3330 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 10:47 · PVG 18:47 · LAX 03:47 · JFK 06:47
    ♥ Do have faith in what you're doing.