Skip to content

Commit bf89b6b

Browse files
authored
Merge pull request #3 from opensource-nepal/fix-install-issue
Fix install issue
2 parents b7163de + c00b888 commit bf89b6b

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ We'll try to include all the features provided in the aforementioned package. We
1515
To install this package use `go get`
1616

1717
```shell
18-
$ go get -u github.com/opensource-nepal/nepali
18+
$ go get -u github.com/opensource-nepal/go-nepali
1919
```
2020

2121
Or if there is some error then, use `go install`
2222

2323
```shell
24-
$ go install github.com/opensource-nepal/nepali
24+
$ go install github.com/opensource-nepal/go-nepali
2525
```
2626

2727
#### Usage
@@ -35,7 +35,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
3535
1. To get a Nepali datetime object:
3636

3737
```go
38-
import "github.com/opensource-nepal/nepali/nepalitime"
38+
import "github.com/opensource-nepal/go-nepali/nepalitime"
3939

4040
npTime, err := nepalitime.Date(2079, 10, 15, 14, 29, 6, 7)
4141
```
@@ -50,7 +50,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
5050
2. If you already have a `time.Time` object then, you can get the corresponding `NepaliTime` object using the function `FromEnglishTime`:
5151

5252
```go
53-
import "github.com/opensource-nepal/nepali/nepalitime"
53+
import "github.com/opensource-nepal/go-nepali/nepalitime"
5454
5555
// just to ensure that the timezone is Asia/Kathmandu
5656
// else the time will be adjusted accordingly
@@ -61,7 +61,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
6161
3. To parse a datestring into a `NepaliTime` object the `Parse` function can be used. This is the Nepali equivalent of the `time.Parse` function of go but instead of using the time parsing format of `Mon Jan 2 15:04:05 -0700 MST 2006` we decided to go with the `%Y/%m/%d` style parsing. We intend on supporting the go style formatting in the upcoming releases. Please see [directives](#date-directives) section to know which directives we support.
6262

6363
```go
64-
import "github.com/opensource-nepal/nepali/nepalitime"
64+
import "github.com/opensource-nepal/go-nepali/nepalitime"
6565
6666
datetimeStr := "2079/10/14"
6767
format := "%Y/%m/%d"
@@ -72,15 +72,15 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
7272
4. To get current Nepali time:
7373

7474
```go
75-
import "github.com/opensource-nepal/nepali/nepalitime"
75+
import "github.com/opensource-nepal/go-nepali/nepalitime"
7676
7777
npTime := nepalitime.Now()
7878
```
7979

8080
5. To get the current English time in Nepal:
8181

8282
```go
83-
import "github.com/opensource-nepal/nepali/nepalitime"
83+
import "github.com/opensource-nepal/go-nepali/nepalitime"
8484
8585
enTime := nepalitime.GetCurrentEnglishTime()
8686
```
@@ -90,7 +90,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
9090
1. This is one of the core functionalities in which an English date(not an object) is converted to Nepali date in parts i.e. year, month, day in an array:
9191

9292
```go
93-
import "github.com/opensource-nepal/nepali/nepalitime"
93+
import "github.com/opensource-nepal/go-nepali/nepalitime"
9494
9595
// npDate is an array of 3 length which contains
9696
// year, month and day sequential form
@@ -100,7 +100,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
100100
2. To convert a Nepali date(not an object) to English date in parts i.e. year, month, day in an array:
101101

102102
```go
103-
import "github.com/opensource-nepal/nepali/nepalitime"
103+
import "github.com/opensource-nepal/go-nepali/nepalitime"
104104
105105
// enDate is an array of 3 length which contains
106106
// year, month and day sequential form

dateConverter/converter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Unit tests for date converter
22
//
33
// To run only this test
4-
// go test -v github.com/opensource-nepal/nepali/dateConverter
4+
// go test -v github.com/opensource-nepal/go-nepali/dateConverter
55
package dateConverter_test
66

77
import (
88
"testing"
99

10-
"github.com/opensource-nepal/nepali/dateConverter"
10+
"github.com/opensource-nepal/go-nepali/dateConverter"
1111
"github.com/stretchr/testify/assert"
1212
)
1313

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/opensource-nepal/nepali
1+
module github.com/opensource-nepal/go-nepali
22

33
go 1.19
44

nepalitime/nepalitime_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Unit tests for NepaliTime object
22
//
33
// To run only this test
4-
// go test -v github.com/opensource-nepal/nepali/nepalitime
4+
// go test -v github.com/opensource-nepal/go-nepali/nepalitime
55
package nepalitime_test
66

77
import (
88
"testing"
99
"time"
1010

11-
"github.com/opensource-nepal/nepali/constants"
12-
"github.com/opensource-nepal/nepali/nepalitime"
11+
"github.com/opensource-nepal/go-nepali/constants"
12+
"github.com/opensource-nepal/go-nepali/nepalitime"
1313
"github.com/stretchr/testify/assert"
1414
)
1515

nepalitime/parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/opensource-nepal/nepali/nepalitime"
7+
"github.com/opensource-nepal/go-nepali/nepalitime"
88
"github.com/stretchr/testify/assert"
99
)
1010

nepalitime/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/opensource-nepal/nepali/constants"
8-
"github.com/opensource-nepal/nepali/dateConverter"
7+
"github.com/opensource-nepal/go-nepali/constants"
8+
"github.com/opensource-nepal/go-nepali/dateConverter"
99
)
1010

1111
// Date returns the Time corresponding to

nepalitime/utils_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/opensource-nepal/nepali/constants"
8-
"github.com/opensource-nepal/nepali/nepalitime"
7+
"github.com/opensource-nepal/go-nepali/constants"
8+
"github.com/opensource-nepal/go-nepali/nepalitime"
99
"github.com/stretchr/testify/assert"
1010
)
1111

0 commit comments

Comments
 (0)