mirror of
https://github.com/sony/sonyflake.git
synced 2026-01-11 05:30:11 +00:00
docs(types): unify and clarify package and type docstrings for types.go in v1 and v2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Package Types defines type signatures used throughout SonyFlake. This allows for
|
||||
// fine-tuned control over imports, and the ability to mock out imports as well
|
||||
// Package types defines type signatures used throughout sonyflake.
|
||||
// This provides the ability to mock out imports.
|
||||
package types
|
||||
|
||||
import "net"
|
||||
|
||||
// InterfaceAddrs defines the interface used for retrieving network addresses
|
||||
// InterfaceAddrs defines the interface used for retrieving network addresses.
|
||||
type InterfaceAddrs func() ([]net.Addr, error)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Package Types defines type signatures used throughout SonyFlake. This allows for
|
||||
// fine-tuned control over imports, and the ability to mock out imports as well
|
||||
// Package types defines type signatures used throughout sonyflake.
|
||||
// This provides the ability to mock out imports.
|
||||
package types
|
||||
|
||||
import "net"
|
||||
|
||||
// InterfaceAddrs defines the interface used for retrieving network addresses
|
||||
// InterfaceAddrs defines the interface used for retrieving network addresses.
|
||||
type InterfaceAddrs func() ([]net.Addr, error)
|
||||
|
||||
Reference in New Issue
Block a user