mirror of
https://github.com/fumiama/water.git
synced 2026-06-27 07:20:25 +08:00
Simplifies Platform Specific Interface Creation
The interface `Config` object is now passed directly into each creation function in order to more easily use additional options. In addition, the linux and darwin parameters were split to better capture different options for each platform.
This commit is contained in:
13
params_darwin.go
Normal file
13
params_darwin.go
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
package water
|
||||
|
||||
// PlatformSpecificParams defines parameters in Config that are specific to
|
||||
// macOS. A zero-value of such type is valid, yielding an interface
|
||||
// with OS defined name.
|
||||
// Currently it is not possible to set the interface name in macOS.
|
||||
type PlatformSpecificParams struct {
|
||||
}
|
||||
|
||||
func defaultPlatformSpecificParams() PlatformSpecificParams {
|
||||
return PlatformSpecificParams{}
|
||||
}
|
||||
Reference in New Issue
Block a user