1. 首页
  2. 考试认证
  3. 其它
  4. Go的漂亮打印机工具o.O使用示例

Go的漂亮打印机工具o.O使用示例

上传者: 2024-12-16 15:18:34上传 ZIP文件 367.27KB 热度 20次

o.O演示用法


package main

import \"github.com/AndrewVos/o\"

type Something struct {

  Name  string

  Value string

}



func main() {

  something := Something {

    Name: \"Donald\",

    Value: \"Duck\"

  }

  o.O(something)

  someString := \"o.O is pretty awesome!\"

  o.O(someString)

}

安装:go get github.com/AndrewVos/o

常问问题

o.O怎么发音?

:通常读作 \"O-dot\"。

下载地址
用户评论