2022-11-27 07:14:36PM
This commit is contained in:
parent
5a7c75f6c1
commit
a5029859ba
2 changed files with 15 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build cgo
|
||||||
|
|
||||||
package d2latex
|
package d2latex
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
13
d2renderers/d2latex/latex_stub.go
Normal file
13
d2renderers/d2latex/latex_stub.go
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
//go:build !cgo
|
||||||
|
|
||||||
|
package d2latex
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
func Render(s string) (string, error) {
|
||||||
|
return "", errors.New("not found in build")
|
||||||
|
}
|
||||||
|
|
||||||
|
func Measure(s string) (width, height int, _ error) {
|
||||||
|
return 0, 0, errors.New("not found in build")
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue