mirror of
https://github.com/Dadido3/go-typst.git
synced 2025-11-20 03:49:34 +00:00
Update VersionString comment
This commit is contained in:
parent
37d4b485dd
commit
24c09dfcbe
@ -13,7 +13,7 @@ import "io"
|
||||
|
||||
// Caller contains all Typst commands that are supported by this library.
|
||||
type Caller interface {
|
||||
// VersionString returns the version string as returned by Typst.
|
||||
// VersionString returns the Typst version as a string.
|
||||
VersionString() (string, error)
|
||||
|
||||
// Fonts returns all fonts that are available to Typst.
|
||||
|
||||
2
cli.go
2
cli.go
@ -22,7 +22,7 @@ type CLI struct {
|
||||
// Ensure that CLI implements the Caller interface.
|
||||
var _ Caller = CLI{}
|
||||
|
||||
// VersionString returns the version string as returned by Typst.
|
||||
// VersionString returns the Typst version as a string.
|
||||
func (c CLI) VersionString() (string, error) {
|
||||
// Get path of executable.
|
||||
execPath := ExecutablePath
|
||||
|
||||
@ -38,7 +38,7 @@ type Docker struct {
|
||||
// Ensure that Docker implements the Caller interface.
|
||||
var _ Caller = Docker{}
|
||||
|
||||
// VersionString returns the version string as returned by Typst.
|
||||
// VersionString returns the Typst version as a string.
|
||||
func (d Docker) VersionString() (string, error) {
|
||||
image := DockerDefaultImage
|
||||
if d.Image != "" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user