Skip to content

Commit

Permalink
pref: removing unused functions (zurvan-lab#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Feb 14, 2024
1 parent f17c9c9 commit 491bd52
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 491bd52

Please sign in to comment.