2021-03-30 20:50:34 +00:00
|
|
|
---
|
|
|
|
title: "It's Alive!"
|
|
|
|
date: 2021-03-30T20:14:33+01:00
|
2021-04-06 19:14:30 +00:00
|
|
|
draft: false
|
2021-03-30 20:50:34 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Welcome To My Blog
|
|
|
|
|
2021-04-10 09:56:44 +00:00
|
|
|
Here's a snippet of Go.
|
2021-03-30 20:50:34 +00:00
|
|
|
|
2021-04-10 09:56:44 +00:00
|
|
|
{{< highlight go >}}
|
2021-03-30 20:50:34 +00:00
|
|
|
func str2int(strnum string) int {
|
2021-04-03 17:15:27 +00:00
|
|
|
i, err := strconv.Atoi(strnum)
|
|
|
|
if err != nil {
|
|
|
|
return 9999
|
|
|
|
}
|
|
|
|
return i
|
2021-03-30 20:50:34 +00:00
|
|
|
}
|
2021-04-10 09:56:44 +00:00
|
|
|
{{< /highlight >}}
|
2021-03-30 20:50:34 +00:00
|
|
|
|
|
|
|
Here's a snippet of Java Springboot.
|
|
|
|
|
|
|
|
```java
|
|
|
|
@RestController
|
|
|
|
@RequestMapping(value = "/hello")
|
|
|
|
public class TrainerController {
|
|
|
|
|
|
|
|
@GetMapping
|
|
|
|
public String helloWorld(){
|
|
|
|
return "Hello, World!";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Here's a snippet of Python.
|
|
|
|
|
|
|
|
```python
|
|
|
|
def test_firefox_browser(headless):
|
|
|
|
bd = BrowserDriver().get("firefox", headless=headless)
|
|
|
|
bd.get('https://test.io')
|
|
|
|
assert "QA Testing as a Service | test IO" == bd.title
|
|
|
|
bd.quit()
|
|
|
|
```
|
|
|
|
|