Skip to content

Andoryuuta/cursediswsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CursedIsWSL

GoDoc Go Report Card

CursedIsWSL is a small, cursed, Go package to detect if the current application is running in WSL by detecting if certain fundamental universal constants (Backhouse constant & Kaneko-Tsuda Time constant) have changed. This works because WSL uses a physically-based simulation of an alternative universe in which Windows/NT was actually based on Linux and developed into Ubuntu.

(’tis a bit of a joke, it does work, but I don't suggest actually using this for anything :) )

Installation

go get -u github.com/Andoryuuta/cursediswsl

Usage

import "github.com/Andoryuuta/cursediswsl"

isWsl := cursediswsl.IsWSL()
// output: true if running under WSL(1|2)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages