亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何使用 godoc 創建文檔?

如何使用 godoc 創建文檔?

Go
慕桂英546537 2023-05-08 14:59:12
我創建了簡單的 go with comment in the application to the function and the package 我嘗試了 godoc -html 和我的應用程序以及結果<!--    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 = ;        </script>                <p>Package main provides logic ...</p>為什么我沒有看到我的其他文件?以及為什么<p>包中有空格// Package main provides logic.package mainimport (}some types.....func main() {}// doLogic .....// .....// ....func (sm *myI) doLogic (s *myStruct) bool {}
查看完整描述

1 回答

?
Smart貓小萌

TA貢獻1911條經驗 獲得超7個贊

默認情況下不記錄未導出的標識符。至少設置?m=all以查看它們:


godoc 服務的網頁的呈現方式可以通過“m”URL 參數來控制;它接受以逗號分隔的標志名稱列表作為值:


all? ? ?show documentation for all declarations, not just the exported ones

methods show all embedded methods, not just those of unexported anonymous fields

src? ? ?show the original source code rather then the extracted documentation

查看完整回答
反對 回復 2023-05-08
  • 1 回答
  • 0 關注
  • 130 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號