platform

package
v0.0.0-...-e7326f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDesktop

func IsDesktop() bool

Returns true if current platform is not mobile.

func IsMobile

func IsMobile() bool

Returns true if current platform is Android or iOS.

Types

type PlatformGenericSpec

type PlatformGenericSpec uint8

type PlatformSpec

type PlatformSpec uint8
const (
	PlatformWindows PlatformSpec = iota
	PlatformDarwin
	PlatformAndroid
	PlatformIOS
	PlatformOther
)

func GetPlatformRuntime

func GetPlatformRuntime() PlatformSpec

func Platform

func Platform() PlatformSpec

Returns current platform.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL