Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: re-struct pkg to be in goify org #1

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:

jobs:
assign-labels:
name: Assign Labels
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions-ecosystem/action-add-labels@v1
- name: Checkout Repository
uses: actions/checkout@v3
- name: Add Labels
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GH_TOKEN }}
labels: |
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on: [push, pull_request]

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
go-version:
- 1.19

- 1.21.0
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- run: go version

- run: go install

- run: go test
- name: Display Go Version
run: go version
- name: Install Dependencies
run: go install
- name: Run Tests
run: go test
27 changes: 13 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@ on:
types: [created]

jobs:
build:
publish:
name: Publish Release
runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
go-version:
- 1.19

- 1.21.0
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- run: go version

- run: go install

- run: GOPROXY=proxy.golang.org go list -m github.com/iamando/logaro
- name: Display Go Version
run: go version
- name: Install Dependencies
run: go install
- name: Verify Dependency
run: GOPROXY=proxy.golang.org go list -m github.com/goify/logaro
9 changes: 5 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:

jobs:
create-pull-request:
name: Create Pull Request
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: jascodes/pr-branch-action@1.0.3
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create Pull Request
uses: jascodes/pr-branch-action@1.0.3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PULL_REQUEST_BRANCH: master
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 iamando
Copyright (c) 2023 goify

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Logaro

![build](https://github.com/iamando/logaro/workflows/build/badge.svg)
![license](https://img.shields.io/github/license/iamando/logaro?color=success)
![Go version](https://img.shields.io/github/go-mod/go-version/iamando/logaro)
[![GoDoc](https://godoc.org/github.com/iamando/logaro?status.svg)](https://godoc.org/github.com/iamando/logaro)
![build](https://github.com/goify/logaro/workflows/build/badge.svg)
![license](https://img.shields.io/github/license/goify/logaro?color=success)
![Go version](https://img.shields.io/github/go-mod/go-version/goify/logaro)
[![GoDoc](https://godoc.org/github.com/goify/logaro?status.svg)](https://godoc.org/github.com/goify/logaro)

`Logaro` is a lightweight Go package for JSON-based logging. It provides a simple and flexible logging solution with support for log levels, log entry customization, and hierarchical loggers.

Expand All @@ -20,7 +20,7 @@
To use Logaro in your Go project, you need to have Go installed and set up. Then, run the following command to install the package:

```bash
go get github.com/iamando/logaro
go get github.com/goify/logaro
```

## Usage
Expand All @@ -30,7 +30,7 @@ Here's a basic example of how to use Logaro:
```go
package main

import "github.com/iamando/logaro"
import "github.com/goify/logaro"


func main() {
Expand Down Expand Up @@ -125,7 +125,7 @@ Feel free to customize and expand upon this API section based on your specific p

## Documentation

For detailed documentation and API reference, please refer to the [GoDoc](https://godoc.org/github.com/iamando/logaro) page.
For detailed documentation and API reference, please refer to the [GoDoc](https://godoc.org/github.com/goify/logaro) page.

## Support

Expand Down
2 changes: 1 addition & 1 deletion examples/basic_usage.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package examples

import "github.com/iamando/logaro"
import "github.com/goify/logaro"

func init() {
// Create a logger
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_serialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package examples
import (
"strings"

"github.com/iamando/logaro"
"github.com/goify/logaro"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/file_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"

"github.com/iamando/logaro"
"github.com/goify/logaro"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/hierarchical_logging.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package examples

import "github.com/iamando/logaro"
import "github.com/goify/logaro"

func init() {
// Create a root logger
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/iamando/logaro
module github.com/goify/logaro

go 1.19
go 1.21.0
Loading