New DEV branch

This commit is contained in:
Winni Neessen 2021-03-27 17:17:41 +01:00
parent ca6c85fab8
commit d3648d18a9
Signed by: wneessen
GPG key ID: 385AC9889632126E
2 changed files with 8 additions and 73 deletions

View file

@ -5,7 +5,8 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fbb0c733-4aa1-4d27-87d5-c7276d8aa613" name="Default Changelist" comment=""> <list default="true" id="fbb0c733-4aa1-4d27-87d5-c7276d8aa613" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/apg.go" beforeDir="false" afterPath="$PROJECT_DIR$/apg.go" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -24,7 +25,7 @@
<component name="Git.Settings"> <component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY"> <option name="RECENT_BRANCH_BY_REPOSITORY">
<map> <map>
<entry key="$PROJECT_DIR$" value="dev" /> <entry key="$PROJECT_DIR$" value="main" />
</map> </map>
</option> </option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@ -69,7 +70,7 @@
<recent name="C:\Users\Winni Neessen\go\src\apg.go\test" /> <recent name="C:\Users\Winni Neessen\go\src\apg.go\test" />
</key> </key>
</component> </component>
<component name="RunManager" selected="Go Test.Test Application"> <component name="RunManager" selected="Go Test.Benchmark Application">
<configuration name="Run Application (with excludes)" type="GoApplicationRunConfiguration" factoryName="Go Application"> <configuration name="Run Application (with excludes)" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="apg.go" /> <module name="apg.go" />
<working_directory value="$PROJECT_DIR$" /> <working_directory value="$PROJECT_DIR$" />
@ -139,17 +140,6 @@
<filePath value="$PROJECT_DIR$" /> <filePath value="$PROJECT_DIR$" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="BenchmarkGetRandNum in apg.go" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="apg.go" />
<working_directory value="$PROJECT_DIR$" />
<framework value="gobench" />
<kind value="PACKAGE" />
<package value="apg.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<pattern value="^\QBenchmarkGetRandNum\E$" />
<method v="2" />
</configuration>
<configuration name="Test Application" type="GoTestRunConfiguration" factoryName="Go Test"> <configuration name="Test Application" type="GoTestRunConfiguration" factoryName="Go Test">
<module name="apg.go" /> <module name="apg.go" />
<working_directory value="$PROJECT_DIR$" /> <working_directory value="$PROJECT_DIR$" />
@ -160,49 +150,6 @@
<filePath value="$PROJECT_DIR$" /> <filePath value="$PROJECT_DIR$" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="TestConvert in github.com/wneessen/apg.go" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="apg.go" />
<working_directory value="$PROJECT_DIR$" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/wneessen/apg.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<pattern value="^\QTestConvert\E$" />
<method v="2" />
</configuration>
<configuration name="TestGetCharRange in apg.go" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="apg.go" />
<working_directory value="$PROJECT_DIR$" />
<framework value="gotest" />
<kind value="DIRECTORY" />
<package value="apg.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<pattern value="^\QTestGetCharRange\E$" />
<method v="2" />
</configuration>
<configuration name="TestGetRandNum in github.com/wneessen/apg.go (1)" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="apg.go" />
<working_directory value="$PROJECT_DIR$" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/wneessen/apg.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<pattern value="^\QTestGetRandNum\E$" />
<method v="2" />
</configuration>
<configuration name="apg.go" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="apg.go" />
<working_directory value="$PROJECT_DIR$" />
<framework value="gotest" />
<kind value="DIRECTORY" />
<package value="apg.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<method v="2" />
</configuration>
<list> <list>
<item itemvalue="Go Build.Run Application" /> <item itemvalue="Go Build.Run Application" />
<item itemvalue="Go Build.Run Application (with params)" /> <item itemvalue="Go Build.Run Application (with params)" />
@ -212,21 +159,7 @@
<item itemvalue="Go Build.Run Application (with newstyle params and spelling and multiple pws)" /> <item itemvalue="Go Build.Run Application (with newstyle params and spelling and multiple pws)" />
<item itemvalue="Go Test.Test Application" /> <item itemvalue="Go Test.Test Application" />
<item itemvalue="Go Test.Benchmark Application" /> <item itemvalue="Go Test.Benchmark Application" />
<item itemvalue="Go Test.TestGetRandNum in github.com/wneessen/apg.go (1)" />
<item itemvalue="Go Test.TestConvert in github.com/wneessen/apg.go" />
<item itemvalue="Go Test.BenchmarkGetRandNum in apg.go" />
<item itemvalue="Go Test.apg.go" />
<item itemvalue="Go Test.TestGetCharRange in apg.go" />
</list> </list>
<recent_temporary>
<list>
<item itemvalue="Go Test.TestGetCharRange in apg.go" />
<item itemvalue="Go Test.apg.go" />
<item itemvalue="Go Test.BenchmarkGetRandNum in apg.go" />
<item itemvalue="Go Test.TestConvert in github.com/wneessen/apg.go" />
<item itemvalue="Go Test.TestGetRandNum in github.com/wneessen/apg.go (1)" />
</list>
</recent_temporary>
</component> </component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -271,7 +204,9 @@
<MESSAGE value="Tests cleanup. Used structs for tests instead of repeating code" /> <MESSAGE value="Tests cleanup. Used structs for tests instead of repeating code" />
<MESSAGE value="v0.2.7: Switched global config to it's own package" /> <MESSAGE value="v0.2.7: Switched global config to it's own package" />
<MESSAGE value="Updated .gitignore" /> <MESSAGE value="Updated .gitignore" />
<option name="LAST_COMMIT_MESSAGE" value="Updated .gitignore" /> <MESSAGE value="Removed .idea from .gitignore" />
<MESSAGE value="Let's have centralized IDE config" />
<option name="LAST_COMMIT_MESSAGE" value="Let's have centralized IDE config" />
</component> </component>
<component name="VgoProject"> <component name="VgoProject">
<integration-enabled>true</integration-enabled> <integration-enabled>true</integration-enabled>

2
apg.go
View file

@ -8,7 +8,7 @@ import (
// Constants // Constants
const DefaultPwLenght int = 20 const DefaultPwLenght int = 20
const VersionString string = "0.2.8" const VersionString string = "0.2.9"
type Config struct { type Config struct {
minPassLen int minPassLen int