Documentation ¶
Overview ¶
This package provides APIs for working with platform-specific code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Feature ¶
type Feature interface { // This method is called if the app is running in the browser. OnWeb() // This method is called if the app is running on either of the following platforms: Windows, Linux, Darwin(macOS). OnPc() }
Feature is used to implement platform-specific logic. This interface provides methods to be called for each supported platform.
type FeatureImpl ¶
type FeatureImpl struct { }
func (*FeatureImpl) OnPc ¶
func (f *FeatureImpl) OnPc()
func (*FeatureImpl) OnWeb ¶
func (f *FeatureImpl) OnWeb()
Click to show internal directories.
Click to hide internal directories.