Skip to content

Commit

Permalink
update go.mod to 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Sep 19, 2022
1 parent 9f3aeaf commit 4bc87d3
Show file tree
Hide file tree
Showing 23 changed files with 112 additions and 113 deletions.
2 changes: 0 additions & 2 deletions .github/CODEOWNERS

This file was deleted.

74 changes: 0 additions & 74 deletions .github/CONTRIBUTING.md

This file was deleted.

4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: kataras
# custom: http://iris-go.com/donate
Empty file removed .github/ISSUE_TEMPLATE.md
Empty file.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: kataras

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Version [e.g. 10]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for pio
title: "[FEATURE REQUEST]"
labels: enhancement
assignees: kataras

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
3 changes: 0 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
go_version: [1.19.x]
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test
run: go test -v ./...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
go.sum
.DS_STORE
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017-2020 Gerasimos Maropoulos.
Copyright (c) 2017-2022 Gerasimos Maropoulos.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

PIO [_Pill for Input/Output_] tries to cure headaches by solving problems where [go](https://golang.org) applications use different kinds of print targets or even loggers.

[![build status](https://img.shields.io/travis/kataras/pio/master.svg?style=flat-square)](https://travis-ci.org/kataras/pio)
[![build status](https://img.shields.io/github/workflow/status/kataras/pio/CI/master?style=for-the-badge)](https://github.com/kataras/pio/actions)
[![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=flat-square)](http://goreportcard.com/report/kataras/pio)
[![godocs](https://img.shields.io/badge/online-documentation-0366d6.svg?style=flat-square)](https://godoc.org/github.com/kataras/pio)
[![godocs](https://img.shields.io/badge/online-documentation-0366d6.svg?style=flat-square)](https://pkg.go.dev/github.com/kataras/pio)
[![github issues](https://img.shields.io/github/issues/kataras/pio.svg?style=flat-square)](https://github.com/kataras/pio/issues?q=is%3Aopen+is%3Aissue)
[![github closed issues](https://img.shields.io/github/issues-closed-raw/kataras/pio.svg?style=flat-square)](https://github.com/kataras/pio/issues?q=is%3Aissue+is%3Aclosed)

Expand All @@ -16,7 +16,7 @@ Navigate through [_examples](_examples/) and [integrations](_examples/integratio

### 🚀 Installation

The only requirement is the Go Programming Language[*](https://golang.org).
The only requirement is the [Go Programming Language](https://go.dev/dl/).

```bash
$ go get github.com/kataras/pio
Expand All @@ -36,4 +36,4 @@ If you have any previous experience on this field your [PR](https://github.com/k
| -----------|--------|-------------|
| [golog](https://github.com/kataras/golog) | [Gerasimos Maropoulos](https://github.com/kataras) | Simple, fast and easy-to-use level-based logger written entirely in [GoLang](https://golang.org). |

> Do not hesitate to put your package on this list via [PR](https://github.com/kataras/pio/pulls)!
> Do not hesitate to put your package on this list via [PR](https://github.com/kataras/pio/pulls)!
4 changes: 0 additions & 4 deletions _examples/integrations/logrus/logrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
Package logrus registers the global logrus logger to the pio ecosystem,
install logrus first:
$ go get github.com/
Example Code:
package main
import (
Expand All @@ -19,7 +16,6 @@ Example Code:
func main() {
pio.Print("This is an info message that will be printed to the logrus' output")
}
*/
package logrus

Expand Down
7 changes: 4 additions & 3 deletions adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ func (w writerFunc) Write(p []byte) (n int, err error) {
// std's log.Panicf is not a compatible interface
//
// output := Output(log.Panicf)
// if IsNop(output) {
// // conversation failed, do something or panic.
//}
//
// if IsNop(output) {
// // conversation failed, do something or panic.
// }
func Wrap(printFn interface{}) io.Writer {
switch printFn.(type) {
case io.Writer:
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/kataras/pio

go 1.15
go 1.19

require golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8
7 changes: 4 additions & 3 deletions registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (
//
// It can be used as follows:
// reg := NewRegistry().
// RegisterPrinter(NewPrinter("err", os.Stderr)).
// RegisterPrinter(NewPrinter("default", os.Stdout)).
// Print("something")
//
// RegisterPrinter(NewPrinter("err", os.Stderr)).
// RegisterPrinter(NewPrinter("default", os.Stdout)).
// Print("something")
type Registry struct {
// can change via `Register` or `RegisterPrinter` with mutex.
// whenever a tool needs an `io.Writer` to do something
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_appengine.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build appengine
// +build appengine

package terminal
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_bsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine
// +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine

Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !appengine
// +build !appengine

package terminal
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_notwindows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (linux || darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine
// +build linux darwin freebsd openbsd netbsd dragonfly
// +build !appengine

Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_solaris.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build solaris && !appengine
// +build solaris,!appengine

package terminal
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows && !appengine
// +build windows,!appengine

package terminal
Expand Down

0 comments on commit 4bc87d3

Please sign in to comment.