From ef655d8bfb709bf35135e33bc7f86e15138ecedf Mon Sep 17 00:00:00 2001 From: outdead Date: Thu, 28 May 2020 05:53:00 +0300 Subject: [PATCH] Add changelog --- .gitignore | 1 - CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ Gopkg.toml | 38 -------------------------------------- LICENSE | 2 +- README.md | 6 +++++- embed_formatter.go | 6 +++--- 6 files changed, 40 insertions(+), 44 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 Gopkg.toml diff --git a/.gitignore b/.gitignore index da23eea..86c571f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,4 @@ # internal tests # vendors -Gopkg.lock vendor/ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..983837e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,31 @@ +# Changelog +All notable changes to this project will be documented in this file. + +**ATTN**: This project uses [semantic versioning](http://semver.org/). + +## [Unreleased] + +## [v1.1.0] - 2020-05-28 +### Added +- Added golangci.yml linter config. To run linter use `golangci-lint run` command. +- Added CHANGELOG.md. +- Some code refactoring. + +### Changed +- Changed const JsonFormatterCode to more idiomatic JSONFormatterCode. +- Changed go module version to go 1.13. + +### Removed +- Removed Gopkg.toml config for dep dependency management tool. + +## [v1.0.1] - 2019-09-03 +### Added +- Added go modules (go 1.11). + +## v1.0.0 - 2019-09-03 +### Added +- Initial implementation. + +[Unreleased]: https://github.com/outdead/discordbotrus/compare/v1.1.0...HEAD +[v1.1.0]: https://github.com/outdead/discordbotrus/compare/v1.0.1...v1.1.0 +[v1.0.1]: https://github.com/outdead/discordbotrus/compare/v1.0.0...v1.0.1 \ No newline at end of file diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 6aca999..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,38 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[[constraint]] - name = "github.com/bwmarrin/discordgo" - version = "0.19.0" - -[[constraint]] - name = "github.com/sirupsen/logrus" - version = "1.4.2" - -[prune] - go-tests = true - unused-packages = true diff --git a/LICENSE b/LICENSE index 61db774..2aeadac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Pavel Korotkiy +Copyright (c) 2020 Pavel Korotkiy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index dffc3ff..5bd66a6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,11 @@ go get github.com/outdead/discordbotrus ``` -Or use dependency manager such as dep or vgo. +See [Changelog](CHANGELOG.md) for release details. + +## Requirements + +Go 1.13 or higher ## Usage diff --git a/embed_formatter.go b/embed_formatter.go index 9b8f297..b7b5a9d 100644 --- a/embed_formatter.go +++ b/embed_formatter.go @@ -15,11 +15,11 @@ const ( embedMaxFieldNameLen = 256 embedMaxFieldValueLen = 1024 embedMaxDescriptionLen = 2048 - - // EmbedFormatterCode formatter code to identify from config. - EmbedFormatterCode = "embed" ) +// EmbedFormatterCode formatter code to identify from config. +const EmbedFormatterCode = "embed" + // DefaultEmbedFormatter used as default EmbedFormatter. var DefaultEmbedFormatter = &EmbedFormatter{ Inline: true,