github.com/jwijenbergh/purego@v0.0.0-20240126093400-70ff3a61df13/dlerror.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: 2023 The Ebitengine Authors 3 4 //go:build darwin || freebsd || linux 5 6 package purego 7 8 // Dlerror represents an error value returned from Dlopen, Dlsym, or Dlclose. 9 type Dlerror struct { 10 s string 11 } 12 13 func (e Dlerror) Error() string { 14 return e.s 15 }