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

pref: removing unused functions #110

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Loading