type Swap … // Swaps returns a slice of all configured swap devices on the system. func (fs FS) Swaps() ([]*Swap, error) { … } func parseSwaps(info []byte) ([]*Swap, error) { … } func parseSwapString(swapString string) (*Swap, error) { … }
type Swap … // Swaps returns a slice of all configured swap devices on the system. func (fs FS) Swaps() ([]*Swap, error) { … } func parseSwaps(info []byte) ([]*Swap, error) { … } func parseSwapString(swapString string) (*Swap, error) { … }