2018-11-07 10:33
浏览 89


I create simple go with comment in the application to the function and the package I tried godoc -html and my application and the result

    Copyright 2009 The Go Authors. All rights reserved.
    Use of this source code is governed by a BSD-style
    license that can be found in the LICENSE file.

        Note: Static (i.e., not template-generated) href and id
        attributes start with "pkg-" to make it impossible for
        them to conflict with generated attributes (some of which
        correspond to Go identifiers).

        <script type='text/javascript'>
        document.ANALYSIS_DATA = ;
        document.CALLGRAPH = ;

Package main provides logic ...

why I didn't see my other document ? and why the <p> for the package has spaces

// Package main provides logic.
package main
import (


some types.....

func main() {

// doLogic .....
// .....
// ....
func (sm *myI) doLogic (s *myStruct) bool {

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题