我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

为什么我的示例没有显示在GoDoc中?

I created a package with examples in the _test.go file and it worked fine. I moved the examples to integration_test.go then example_test.go and now they don't show up in my godoc

The contents of example_test.go is like so:

//+build integration

package gokini

import (
    "fmt"
    "time"
)

type PrintRecordConsumer struct {
    shardID string
}

func ExampleRecordConsumer() {
    // SNIP

    // Output:
    // Checkpointer initializing
    // foo
    // PrintRecordConsumer Shutdown
}

近期文章

  • 使用golang的http请求中的nil chan,中断通话
  • 转到gonum图,将png数据存储到数据库
  • Json解码为struct,根据路径使用不同的请求类型
  • 在Alexa中,如何在Intent代码中定义默认插槽?
  • 将Go结构数据嵌入二进制
  • 无法将地图内容列表保存到elasticsearch
  • 如何使用银杏写多个测试文件中的测试用例?
  • Golang neo4j MERGE需要文字映射
  • 在HTML文档中包括JS和CSS?
  • osxfuse cgofuse mkdir输入/输出错误
  • mongodb聚合在golang中给出错误
  • 如何恢复循环中调用的多个go例程的输入
  • Golang Cookie的时间戳为空
  • 如何安装查找/内部位置
  • 如何阅读要附加的切片?
  • 通过API进行解组响应
  • 客户端TLS认证问题
  • 写给阅读器时分段上传到s3
  • 如何遍历反射中的地图
  • 使用名称空间遍历xml中的元素

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华