Skip to content
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
14 changes: 9 additions & 5 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ If newer version than itself is detected, it downloads released binary from GitH
There are some naming rules. Please read following links.

Naming Rules of Released Binaries:
https://github.com/creativeprojects/go-selfupdate#naming-rules-of-released-binaries

https://github.com/creativeprojects/go-selfupdate#naming-rules-of-released-binaries

Naming Rules of Git Tags:
https://github.com/creativeprojects/go-selfupdate#naming-rules-of-versions-git-tags

https://github.com/creativeprojects/go-selfupdate#naming-rules-of-versions-git-tags

This package is hosted on GitHub:
https://github.com/creativeprojects/go-selfupdate

https://github.com/creativeprojects/go-selfupdate

Small CLI tools as wrapper of this library are available also:
https://github.com/creativeprojects/go-selfupdate/cmd/detect-latest-release
https://github.com/creativeprojects/go-selfupdate/cmd/go-get-release

https://github.com/creativeprojects/go-selfupdate/cmd/detect-latest-release
https://github.com/creativeprojects/go-selfupdate/cmd/go-get-release
*/
package selfupdate
2 changes: 1 addition & 1 deletion mockdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/stretchr/testify/require"
"github.com/ProtonMail/go-crypto/openpgp"
"github.com/stretchr/testify/require"
)

// mockSourceRepository creates a new *MockSource pre-populated with different versions and assets
Expand Down
9 changes: 3 additions & 6 deletions update/doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Package update provides functionality to implement secure, self-updating Go programs (or other single-file targets).

Basic Example
# Basic Example

This example shows how to update a program remotely from a URL.

Expand All @@ -28,8 +28,7 @@ This example shows how to update a program remotely from a URL.
return err
}


Checksum Verification
# Checksum Verification

Updating executable code on a computer can be a dangerous operation unless you
take the appropriate steps to guarantee the authenticity of the new code. While
Expand Down Expand Up @@ -67,7 +66,7 @@ specified as a hex string.
return err
}

Cryptographic Signature Verification
# Cryptographic Signature Verification

Cryptographic verification of new code from an update is an extremely important way to guarantee the
security and integrity of your updates.
Expand Down Expand Up @@ -120,7 +119,5 @@ with the private key and distribute the signature along with the update.
}
return err
}


*/
package update
4 changes: 2 additions & 2 deletions validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"os"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/ProtonMail/go-crypto/openpgp"
"github.com/ProtonMail/go-crypto/openpgp/armor"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestValidatorAssetNames(t *testing.T) {
Expand Down
Loading