<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WinneRose Blog]]></title><description><![CDATA[Hi I'm Burak Osman, i working in ux/ui design and fullstack development]]></description><link>https://blog.winnerose.net</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 03:00:30 GMT</lastBuildDate><atom:link href="https://blog.winnerose.net/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Pass by Value]]></title><description><![CDATA[In this section We Will Discuss What Does Mean "Pass by Value"
  We have 2 Type of Values
  Pointer Wrapper Values

Map
Slices
Functions

Non-Pointer Values

Strings
Int
Floats
Booleans
Arrays
Stuctures

For non-pointers, we need to redefine separate...]]></description><link>https://blog.winnerose.net/pass-by-value</link><guid isPermaLink="true">https://blog.winnerose.net/pass-by-value</guid><category><![CDATA[golang]]></category><category><![CDATA[Tutorial]]></category><category><![CDATA[introduction]]></category><category><![CDATA[Go Language]]></category><dc:creator><![CDATA[Burak Osman Yaldız]]></dc:creator><pubDate>Sat, 07 May 2022 19:17:48 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1651951021511/BesWZNXHl.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In this section We Will Discuss What Does Mean "Pass by Value"
  We have 2 Type of Values</p>
<p>  Pointer Wrapper Values</p>
<ul>
<li>Map</li>
<li>Slices</li>
<li>Functions</li>
</ul>
<p>Non-Pointer Values</p>
<ul>
<li>Strings</li>
<li>Int</li>
<li>Floats</li>
<li>Booleans</li>
<li>Arrays</li>
<li>Stuctures</li>
</ul>
<p>For <strong>non-pointers</strong>, we need to redefine separately, for example</p>
<p>Whenever we try to change it with a function parameter, a variable copy of a new parameter is created in the computer memory for that function, so it does not change even if we try to change the value of the variable in our next codes. due to scope range</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">"fmt"</span>

<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">changevalue</span><span class="hljs-params">(i <span class="hljs-keyword">int</span>)</span></span> {
    i = <span class="hljs-number">20</span>
}

<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
    i := <span class="hljs-number">5</span>
    changevalue(i)

    fmt.Println(<span class="hljs-string">"Value:"</span>, i) <span class="hljs-comment">// Value: 5</span>
}
</code></pre>
<p>If you ask how this is for the <strong>pointer wrapper value</strong>, they update the memory address directly instead of creating a copy for the variable.</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">"fmt"</span>

<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">changevalue</span><span class="hljs-params">(y <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>]<span class="hljs-keyword">float64</span>)</span></span> {
    y[<span class="hljs-string">"baklava"</span>] = <span class="hljs-number">15.5</span>
}

<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {

    menu := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>]<span class="hljs-keyword">float64</span>{
        <span class="hljs-string">"pie"</span>:       <span class="hljs-number">35.6</span>,
        <span class="hljs-string">"ice cream"</span>: <span class="hljs-number">20.4</span>,
    }

    fmt.Println(menu) <span class="hljs-comment">// map[ice cream:20.4 pie:35.6]</span>
    changevalue(menu)
    fmt.Println(menu) <span class="hljs-comment">// map[baklava:15.5 ice cream:20.4 pie:35.6]</span>
}
</code></pre>
<p>Thanks for Reading 
<em>WinneRose</em></p>
]]></content:encoded></item><item><title><![CDATA[How to Use "NuxtJS + Lanyard"]]></title><description><![CDATA[What is lanyard used for?
Lanyard is a service that makes it super easy to export your live Discord presence to an API endpoint and to a WebSocket for you to use wherever you want. This plugin creates a connection between Lanyard and your Nuxt app as...]]></description><link>https://blog.winnerose.net/nuxtjs-lanyard</link><guid isPermaLink="true">https://blog.winnerose.net/nuxtjs-lanyard</guid><category><![CDATA[Nuxt]]></category><category><![CDATA[js]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Tutorial]]></category><category><![CDATA[UI]]></category><dc:creator><![CDATA[Burak Osman Yaldız]]></dc:creator><pubDate>Fri, 22 Apr 2022 22:10:34 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1650663873847/a4XrwmlKZ.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-what-is-lanyard-used-for">What is lanyard used for?</h1>
<p>Lanyard is a service that makes it super easy to export your live Discord presence to an API endpoint and to a WebSocket for you to use wherever you want. This plugin creates a connection between Lanyard and your Nuxt app as a plugin and lets you access the $lanyard anywhere in your app!</p>
<h2 id="heading-install">🔧 Install</h2>
<p>You'll need Node.js and an existing NuxtJS app to use this plugin </p>
<pre><code>Download the module via NPM, Yarn or your package manager.
- For NPM: npm install @eggsydev<span class="hljs-operator">/</span>vue<span class="hljs-operator">-</span>lanyard
<span class="hljs-operator">-</span> For Yarn: yarn add @eggsydev<span class="hljs-operator">/</span>vue<span class="hljs-operator">-</span>lanyard
</code></pre><h2 id="heading-setup-for-nuxtjs">🚀 Setup for NuxtJS</h2>
<ul>
<li><p>Create <strong>plugins </strong> folder in root project</p>
</li>
<li><p>Create "Nuxtlanyard.js" in plugins folder <strong>(You don't need to use this name, it can be different name, but make a note of it. It will be used in nuxt.config.js)</strong></p>
</li>
<li><p>Open "Nuxtlanyard.js" file to edit then write this code in your file</p>
</li>
</ul>
<pre><code><span class="hljs-keyword">import</span> <span class="hljs-title">Vue</span> <span class="hljs-title"><span class="hljs-keyword">from</span></span> <span class="hljs-string">"vue"</span>;
<span class="hljs-keyword">import</span> <span class="hljs-title">VueLanyard</span> <span class="hljs-title"><span class="hljs-keyword">from</span></span> <span class="hljs-string">"@eggsydev/vue-lanyard"</span>;

Vue.use(VueLanyard);
</code></pre><ul>
<li>Then you need to add your plugin to nuxt.config.js file</li>
</ul>
<pre><code><span class="hljs-selector-tag">export</span> <span class="hljs-selector-tag">default</span> {
  <span class="hljs-attribute">plugins</span>: [
    {
      src: <span class="hljs-string">"@/plugins/Nuxtlanyard.js"</span>,
      mode: <span class="hljs-string">"client"</span>,
    },
  ],
};
</code></pre><h3 id="heading-examples">❤️ Examples</h3>
<p>The current winnerose.live website is developed with lanyard's js side, but my website alysum is completely powered by nuxt.</p>
<ul>
<li>Alysum: <a target="_blank" href="https://github.com/WinneRose/Alysum">Source</a> | <a target="_blank" href="https://alysum.vercel.app/">Website</a></li>
<li>WinneRose: <a target="_blank" href="https://github.com/WinneRose/winnerose.github.io">Source</a> | <a target="_blank" href="https://winnerose.live/">Website</a><pre><code><span class="hljs-comment">//Example Fetching Profile Picture from Discord Avatar</span>
async mounted() {
  const socket <span class="hljs-operator">=</span> await <span class="hljs-built_in">this</span>.$lanyard({
    userId: <span class="hljs-string">'701896585604497490'</span>,
    socket: <span class="hljs-literal">true</span>,
  })
  <span class="hljs-comment">// Set a listener for "message" event</span>
  socket.addEventListener(<span class="hljs-string">'message'</span>, ({ data }) <span class="hljs-operator">=</span><span class="hljs-operator">&gt;</span> {
    const { d: status } <span class="hljs-operator">=</span> JSON.parse(data)
    <span class="hljs-built_in">this</span>.profileurl <span class="hljs-operator">=</span> `https:<span class="hljs-comment">//cdn.discordapp.com/avatars/701896585604497490/${status.discord_user.avatar}.png?size=256`</span>
    <span class="hljs-built_in">this</span>.<span class="hljs-built_in">name</span> <span class="hljs-operator">=</span> status.discord_user.username
  })
</code></pre></li>
</ul>
<p>Thanks For Reading Article</p>
<ul>
<li>WinneRose | https://github.com/WinneRose</li>
</ul>
]]></content:encoded></item></channel></rss>