Coder Social home page Coder Social logo

blog.toshima.ru's Introduction

I'm Toshimaru ๐Ÿ™ƒ

GitHub Badge Twitter Badge

๐Ÿ“ Blog

๐Ÿ”ง OSS

๐Ÿงฐ Web Tools

๐Ÿ“Š Analytics

๐Ÿ’“ Sponsorship

blog.toshima.ru's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar deppbot avatar gfjaru avatar toshimaru avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

blog.toshima.ru's Issues

Dependabot couldn't fetch the branch/reference for jekyll-compose

Your dependency file specified a branch or reference for jekyll-compose, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose

Your dependency file specified a branch or reference for jekyll-compose, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Go struct, slice, reference type, pointer type

call by value / call by reference
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := foo{a: 1, b: 2, c: 3}
	fmt.Println(f)
	bar(f)
	fmt.Println(f)
}

func bar(f foo) {
	f.a = -1
}
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := foo{a: 1, b: 2, c: 3}
	fmt.Println(f)
	bar(&f)
	fmt.Println(f)
}

func bar(f *foo) {
	f.a = -1
}
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := []foo{
		{a: 1, b: 2, c: 3},
		{a: 10},
	}
	fmt.Println(f)
	change_struct(f)
	fmt.Println(f)
}

func change_struct(f []foo) {
	for i := range f {
		f[i].a = -1
	}
}
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := []foo{
		{a: 1, b: 2, c: 3},
		{a: 10},
	}
	fmt.Println(f)
	change_struct(f)
	fmt.Println(f)
}

func change_struct(f []foo) {
	for i := 0; i < len(f); i++ {
		f[i].a = -1
	}
}
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := []*foo{
		{a: 1, b: 2, c: 3},
		{a: 10},
	}
	fmt.Println(f[0], f[1])
	change_struct(f)
	fmt.Println(f[0], f[1])
}

func change_struct(f []*foo) {
	for _, x := range f {
		x.a = -1
	}
}
package main

import (
	"fmt"
)

type foo struct {
	a, b, c int
}

func main() {
	f := []*foo{
		{a: 1, b: 2, c: 3},
		{a: 10},
		{a: 1, b: 2, c: 3},
	}
	fmt.Println(f)
	f = change_struct(f)
	fmt.Println(f)
}

func change_struct(f []*foo) []*foo {
	y := []*foo{}

	fmt.Println(f, y)
	for _, x := range f {
		if x.b == 2 {
			y = append(y, x)
		}
	}
	fmt.Println(f, y)

	return y
}

Reference

Dependabot couldn't fetch the branch/reference for jekyll-compose.git

Your dependency file specified a branch or reference for jekyll-compose.git, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose.git locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose.git

Your dependency file specified a branch or reference for jekyll-compose.git, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose.git locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose.git

Your dependency file specified a branch or reference for jekyll-compose.git, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose.git locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose

Your dependency file specified a branch or reference for jekyll-compose, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose.git

Your dependency file specified a branch or reference for jekyll-compose.git, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose.git locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot couldn't fetch the branch/reference for jekyll-compose

Your dependency file specified a branch or reference for jekyll-compose, but Dependabot couldn't find it at the project's source. Has it been removed?

For Ruby dependencies, this can be caused by a branch specified in your Gemfile being deleted at the source, or having been rebased, so the commit reference in your Gemfile.lock is no longer included in the branch. In that case, it can be fixed by running bundler update jekyll-compose locally.

You can mention @dependabot in the comments below to contact the Dependabot team.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.