Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
pref: remving unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Feb 14, 2024
1 parent f17c9c9 commit dcb2c7f
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions version.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package timetracedb

import (
"encoding/json"
"encoding/xml"
"fmt"
)
import "fmt"

// These constants follow the semantic versioning 2.0.0 spec (http://semver.org/)
type Version struct {
Expand All @@ -30,21 +26,3 @@ func StringVersion() string {

return v
}

func JSONVersion() (string, error) {
v, err := json.Marshal(version)
if err != nil {
return "", err
}

return string(v), nil
}

func XMLVersion() (string, error) {
v, err := xml.MarshalIndent(version, "", " ")
if err != nil {
return "", err
}

return string(v), nil
}

0 comments on commit dcb2c7f

Please sign in to comment.