On my daily work I have to switch context while in the middle of a modification many times,
or I just have to work on two different versions in parallel.
Working with git
there are many ways to save your work and come back later,
but I have found all of them too cumbersome in the process to resume work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func printJson(tag string, elem interface{}) error { | |
jobj, err := json.MarshalIndent(elem, "", " ") | |
if err != nil { | |
return err | |
} | |
fmt.Printf("\n%s:\n%s\n", tag, string(jobj)) | |
return nil | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dummy; | |
import io.lettuce.core.api.StatefulRedisConnection; | |
import io.lettuce.core.api.sync.RedisCommands; | |
import io.micronaut.context.ApplicationContext; | |
import io.micronaut.http.client.HttpClient; | |
import io.micronaut.runtime.server.EmbeddedServer; | |
import io.micronaut.validation.Validated; | |
import lombok.Builder; |