hoi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log/slog" | |
"os" | |
) | |
func log(logger *slog.Logger) { | |
logger.Debug("debug message") |
goname
is a simple and robust command-line utility to get the package name from a Go package path.
It is designed to work seamlessly whether the package is part of your current Go module or an external one. It intelligently falls back to a temporary module to resolve package names that are not in your module's dependency graph.
- Get Package Names: Fetches the official package name from one or more package paths.
- Version Specifiers: Supports version specifiers like
@latest
or@v1.2.3
for fetching packages.
- そもそもsymgoで
--mode lib
を指定したときに遅いのと失敗している。- メモ化的なものを取り入れたい https://github.com/podhmo/go-scan/blob/develop/docs/plan-find-orphans-memoize.md
- find-orphansのようなものはメモ化できるがdocgenのようなものは補助関数をメモ化されると困る
- メモ化する時には戻り値を気にしないと、メソッド呼び出しをtraceできない
⚠️ そもそもメモ化効いてなくない?
NewerOlder