Skip to content

Commit b3f293f

Browse files
authored
Merge pull request #1 from aj3sh/change-package-name
Change package name
2 parents 8962000 + 9f655c4 commit b3f293f

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

.github/workflows/nepali-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Go Nepali CI
55

66
on:
77
push:
8-
branches: ["main", "release/*"]
8+
branches: ["main"]
99
pull_request:
1010

1111
jobs:

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
![CI status](https://github.com/sugat009/go-nepali/actions/workflows/nepali-ci.yml/badge.svg?branch=main)
1+
![CI status](https://github.com/opensource-nepal/go-nepali/actions/workflows/nepali-ci.yml/badge.svg?branch=main)
22

33
## Nepali
4-
This is a `golang` implementation of the package from [aj3sh](https://github.com/aj3sh)'s `python` package [nepali](https://github.com/aj3sh/nepali).
4+
This is a `golang` implementation of the package from [opensource-nepal](https://github.com/opensource-nepal)'s `python` package [nepali](https://github.com/opensource-nepal/py-nepali).
55

66
We'll try to include all the features provided in the aforementioned package. We'll be releasing features in parts to support all or most features given by `go`'s `time` package.
77

@@ -10,13 +10,13 @@ We'll try to include all the features provided in the aforementioned package. We
1010
To install this package use `go get`
1111

1212
```shell
13-
$ go get -u github.com/sugat009/nepali
13+
$ go get -u github.com/opensource-nepal/nepali
1414
```
1515

1616
Or if there is some error then, use `go install`
1717

1818
```shell
19-
$ go install github.com/sugat009/nepali
19+
$ go install github.com/opensource-nepal/nepali
2020
```
2121

2222
#### Usage
@@ -30,7 +30,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
3030
1. To get a Nepali datetime object:
3131

3232
```go
33-
import "github.com/sugat009/nepali/nepalitime"
33+
import "github.com/opensource-nepal/nepali/nepalitime"
3434

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

4747
```go
48-
import "github.com/sugat009/nepali/nepalitime"
48+
import "github.com/opensource-nepal/nepali/nepalitime"
4949
5050
// just to ensure that the timezone is Asia/Kathmandu
5151
// else the time will be adjusted accordingly
@@ -56,7 +56,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
5656
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.
5757

5858
```go
59-
import "github.com/sugat009/nepali/nepalitime"
59+
import "github.com/opensource-nepal/nepali/nepalitime"
6060
6161
datetimeStr := "2079/10/14"
6262
format := "%Y/%m/%d"
@@ -67,15 +67,15 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
6767
4. To get current Nepali time:
6868

6969
```go
70-
import "github.com/sugat009/nepali/nepalitime"
70+
import "github.com/opensource-nepal/nepali/nepalitime"
7171
7272
npTime := nepalitime.Now()
7373
```
7474

7575
5. To get the current English time in Nepal:
7676

7777
```go
78-
import "github.com/sugat009/nepali/nepalitime"
78+
import "github.com/opensource-nepal/nepali/nepalitime"
7979
8080
enTime := nepalitime.GetCurrentEnglishTime()
8181
```
@@ -85,7 +85,7 @@ In this package, we provide 2 `go` packages, `nepalitime` and `dateConverter`.
8585
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:
8686

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

9797
```go
98-
import "github.com/sugat009/nepali/nepalitime"
98+
import "github.com/opensource-nepal/nepali/nepalitime"
9999
100100
// enDate is an array of 3 length which contains
101101
// 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,14 +1,14 @@
11
// Unit tests for date converter
22
//
33
// To run only this test
4-
// go test -v github.com/sugat009/nepali/dateConverter
4+
// go test -v github.com/opensource-nepal/nepali/dateConverter
55
package dateConverter_test
66

77
import (
88
"testing"
99

10+
"github.com/opensource-nepal/nepali/dateConverter"
1011
"github.com/stretchr/testify/assert"
11-
"github.com/sugat009/nepali/dateConverter"
1212
)
1313

1414
// EnglishToNepali

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/sugat009/nepali
1+
module github.com/opensource-nepal/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,16 +1,16 @@
11
// Unit tests for NepaliTime object
22
//
33
// To run only this test
4-
// go test -v github.com/sugat009/nepali/nepalitime
4+
// go test -v github.com/opensource-nepal/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"
1113
"github.com/stretchr/testify/assert"
12-
"github.com/sugat009/nepali/constants"
13-
"github.com/sugat009/nepali/nepalitime"
1414
)
1515

1616
// Not supposed to be changed.

nepalitime/parser_test.go

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

7+
"github.com/opensource-nepal/nepali/nepalitime"
78
"github.com/stretchr/testify/assert"
8-
"github.com/sugat009/nepali/nepalitime"
99
)
1010

1111
// TODO: currently we only provide a read-only

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/sugat009/nepali/constants"
8-
"github.com/sugat009/nepali/dateConverter"
7+
"github.com/opensource-nepal/nepali/constants"
8+
"github.com/opensource-nepal/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,9 +4,9 @@ import (
44
"testing"
55
"time"
66

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

1212
func TestDateFunctionWithInvalidDateAndTimeArgument(t *testing.T) {

0 commit comments

Comments
 (0)